Files
tubestation/devtools/shared/webconsole/test/console-test-worker.js
2017-01-19 20:26:00 +00:00

20 lines
265 B
JavaScript

"use strict";
console.log("Log from worker init");
function f() {
const a = 1;
const b = 2;
const c = 3;
return {a, b, c};
}
self.onmessage = function (event) {
if (event.data == "ping") {
f();
postMessage("pong");
}
};
postMessage("load");