mirror of
https://github.com/classilla/tenfourfox.git
synced 2024-11-20 10:33:36 +00:00
26 lines
466 B
JavaScript
26 lines
466 B
JavaScript
"use strict";
|
|
|
|
function f() {
|
|
debugger;
|
|
}
|
|
|
|
var worker = new Worker("WorkerDebuggerGlobalScope.enterEventLoop_childWorker.js");
|
|
|
|
worker.onmessage = function (event) {
|
|
postMessage("child:" + event.data);
|
|
};
|
|
|
|
self.onmessage = function (event) {
|
|
var message = event.data;
|
|
if (message.indexOf(":") >= 0) {
|
|
worker.postMessage(message.split(":")[1]);
|
|
return;
|
|
}
|
|
switch (message) {
|
|
case "ping":
|
|
debugger;
|
|
postMessage("pong");
|
|
break;
|
|
};
|
|
};
|