mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-25 02:40:22 -10:00
# ignore-this-changeset Differential Revision: https://phabricator.services.mozilla.com/D35894
20 lines
266 B
JavaScript
20 lines
266 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");
|