summaryrefslogtreecommitdiffstats
path: root/dom/workers/test/WorkerDebuggerGlobalScope.createSandbox_sandbox.js
blob: f94d6506225f49ab15bfc9f61d361c5271a704e1 (plain)
1
2
3
4
5
6
7
8
9
"use strict";

self.addEventListener("message", function(event) {
  switch (event.data) {
  case "ping":
    self.postMessage("pong");
    break;
  }
});