Skip to content

Commit

Permalink
Ensure that JS that imports Wasm runs
Browse files Browse the repository at this point in the history
  • Loading branch information
GeoffreyBooth committed Sep 26, 2023
1 parent 39d8734 commit 62b4b09
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/es-module/test-esm-type-flag-package-scopes.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ describe('the type flag should change the interpretation of certain files within
]);

strictEqual(stderr, '');
strictEqual(stdout, '');
strictEqual(stdout, 'executed\n');
strictEqual(code, 0);
strictEqual(signal, null);
});
Expand Down
4 changes: 3 additions & 1 deletion test/fixtures/es-modules/package-type-module/wasm-dep.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,6 @@ export let state = 'JS Function Executed';
export function jsInitFn () {
strictEqual(state, 'JS Function Executed');
state = 'WASM Start Executed';
}
}

console.log('executed');

0 comments on commit 62b4b09

Please sign in to comment.