1 2 3 4 5 6 7
"use strict"; self.addEventListener("message", ({ data }) => foo(data)); function foo(data) { throw new Error("worker2"); }