repo.or.cz
/
gecko.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
Backed out changeset 713114c0331a (bug 1938707) by developer request CLOSED TREE
[gecko.git]
/
js
/
xpconnect
/
tests
/
unit
/
non_shared_1.mjs
blob
9b909c134a49e18041fcd34a612db7febebe86a8
1
import { setGlobal } from "./non_shared_2.mjs";
2
3
globalThis["loaded"].push(1);
4
5
globalThis["counter"] = 0;
6
7
let counter = 0;
8
9
export function getCounter() {
10
return counter;
11
}
12
13
export function incCounter() {
14
counter++;
15
}
16
17
export function putCounter() {
18
setGlobal("counter", counter);
19
}