PR-URL: https://github.com/nodejs/node/pull/27659 Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Myles Borins <myles.borins@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
13 lines
No EOL
274 B
JavaScript
13 lines
No EOL
274 B
JavaScript
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';
|
|
} |