blob: 219759b057d4062e535652ad1882077bea428b55 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
onmessage = event => {
globalThis["loaded"] = [];
var ns = ChromeUtils.importESModule("resource://test/non_shared_1.mjs", {
global: "current",
});
const c1 = ns.getCounter();
ns.incCounter();
const c2 = ns.getCounter();
postMessage({ c1, c2, loaded: globalThis["loaded"] });
};
|