gecko-dev/dom/workers/test/WorkerDebuggerGlobalScope.createSandbox_sandbox.js

10 lines
154 B
JavaScript

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