summaryrefslogtreecommitdiff
path: root/scripts/test/wasm2js.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/test/wasm2js.py')
-rwxr-xr-xscripts/test/wasm2js.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/test/wasm2js.py b/scripts/test/wasm2js.py
index 39ba946fe..c1abaa8f9 100755
--- a/scripts/test/wasm2js.py
+++ b/scripts/test/wasm2js.py
@@ -86,7 +86,8 @@ def test_wasm2js_output():
# to enable ESM syntax and we're also passing a custom loader to handle the
# `spectest` and `env` modules in our tests.
if NODEJS:
- node = [NODEJS, '--experimental-modules', '--loader', './scripts/test/node-esm-loader.mjs']
+ loader = os.path.join(options.binaryen_root, 'scripts', 'test', 'node-esm-loader.mjs')
+ node = [NODEJS, '--experimental-modules', '--loader', loader]
cmd = node[:]
cmd.append('a.2asm.mjs')
out = run_command(cmd)