gecko/dom/workers/test/WorkerDebugger.initialize_worker.js

10 lines
197 B
JavaScript

"use strict";
var worker = new Worker("WorkerDebugger.initialize_childWorker.js");
worker.onmessage = function (event) {
postMessage("child:" + event.data);
};
debugger;
postMessage("worker");