aboutsummaryrefslogtreecommitdiff
path: root/run-wasm.js
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2023-12-27 09:34:31 +0000
committerMichael Williamson <mike@zwobble.org>2023-12-27 09:35:03 +0000
commit3e03324fa88d4364dddff092aa1e5a9e8deaa51b (patch)
tree6d72f78e6831454063b450c089d6e628969d805b /run-wasm.js
parent4e9724ce88569a70f21ecf83470cb13961bb29d3 (diff)
Update to node 20
Diffstat (limited to 'run-wasm.js')
-rw-r--r--run-wasm.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/run-wasm.js b/run-wasm.js
index f31964e2..b1485f80 100644
--- a/run-wasm.js
+++ b/run-wasm.js
@@ -4,8 +4,10 @@ const fs = require("fs");
const {WASI} = require("wasi");
const wasi = new WASI({
+ version: "preview1",
args: process.argv.slice(2),
env: process.env,
+ returnOnExit: false,
});
const importObject = {"wasi_snapshot_preview1": wasi.wasiImport};