blob: 70b16348b844d9b2ec77b499b414bc921f619c9a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
function assertEquals(actual, expected, msg) {
if (actual !== expected) {
throw new Error(msg || "");
}
}
export function jsFn() {
state = "WASM JS Function Executed";
return 42;
}
export let state = "JS Function Executed";
export function jsInitFn() {
assertEquals(state, "JS Function Executed", "Incorrect state");
state = "WASM Start Executed";
}
|