gecko-dev/dom/workers/test/WorkerDebugger_worker.js

9 строки
182 B
JavaScript

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