summaryrefslogtreecommitdiffstats
path: root/js/xpconnect/tests/unit/non_shared_1.mjs
blob: 9b909c134a49e18041fcd34a612db7febebe86a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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);
}