tenfourfox/dom/workers/test/WorkerDebuggerGlobalScope.setImmediate_debugger.js
Cameron Kaiser c9b2922b70 hello FPR
2017-04-19 00:56:45 -07:00

13 lines
201 B
JavaScript

"use strict";
this.onmessage = function (event) {
switch (event.data) {
case "ping":
setImmediate(function () {
postMessage("pong1");
});
postMessage("pong2");
break;
}
};