1 2 3 4 5 6 7 8 9 10 11
"use strict"; var worker = new Worker("WorkerDebuggerGlobalScope.reportError_childWorker.js"); worker.onmessage = function (event) { postMessage("child:" + event.data); }; self.onerror = function () { postMessage("error"); };