summaryrefslogtreecommitdiff
path: root/test/fixtures/es-modules/wasm-dep.mjs
blob: 243e1b17d26294c704780ab4004be7ff9f827cf9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
import { strictEqual } from 'assert';

export function jsFn () {
  state = 'WASM JS Function Executed';
  return 42;
}

export let state = 'JS Function Executed';

export function jsInitFn () {
  strictEqual(state, 'JS Function Executed');
  state = 'WASM Start Executed';
}