1
0
Fork 0
firefox/js/xpconnect/tests/unit/non_shared_1.mjs
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

19 lines
291 B
JavaScript

import { setGlobal } from "./non_shared_2.mjs";
globalThis["loaded"].push(1);
globalThis["counter"] = 0;
let counter = 0;
export function getCounter() {
return counter;
}
export function incCounter() {
counter++;
}
export function putCounter() {
setGlobal("counter", counter);
}