Running tests with Node requires --experimental-wasm-bigint

This commit is contained in:
Frank Denis 2022-12-18 21:21:03 +01:00
parent b73238ff32
commit 6c3b1492b2

View File

@ -45,7 +45,7 @@ if [ -z "$WASI_RUNTIME" ] || [ "$WASI_RUNTIME" = "node" ]; then
echo "wasi.start(instance);"
} >"${1}.mjs"
cat "${1}.mjs" >/tmp/a
node --experimental-wasi-unstable-preview1 "${1}.mjs" 2>/tmp/err &&
node --experimental-wasm-bigint --experimental-wasi-unstable-preview1 "${1}.mjs" 2>/tmp/err &&
rm -f "${1}.mjs" && exit 0
fi
fi