summaryrefslogtreecommitdiffstats
path: root/dom/workers/test/WorkerDebuggerGlobalScope.reportError_debugger.js
blob: 67ea08de5a397e7adee8c186b7c09b741c9a25fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
"use strict";

this.onmessage = function (event) {
  switch (event.data) {
  case "report":
    reportError("reported");
    break;
  case "throw":
    throw new Error("thrown");
    break;
  }
};