blob: 67dd2cf8f86bc114f6007284a6131ea7b35330b9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
var state = {count:0}
function inc() {
state.count++;
}
function get() {
return state.count;
}
if (globalThis.lib1_is_loaded) {
throw Error("lib1 already loaded");
globalThis.lib1_is_loaded = true;
}
export default {inc, get}
|