summaryrefslogtreecommitdiffstats
path: root/dom/workers/test/WorkerDebuggerGlobalScope.reportError_worker.js
blob: 67ccfc2ca0a07febc63695d4ad50440e2271d3d8 (plain)
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");
};