We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9fa8ee5 + 16011f2 commit 4a11dbaCopy full SHA for 4a11dba
packages/npm-packages/ruby-wasm-wasi/tools/run-test-unit.mjs
@@ -66,6 +66,11 @@ const instantiateNodeWasi = async (rootTestFile) => {
66
"RUBY_FIBER_MACHINE_STACK_SIZE": String(1024 * 1024 * 20),
67
},
68
preopens,
69
+ // This test runner initializes WASI and then drives Ruby from JS via
70
+ // vm.evalAsync(). In this setup, Node's WASI implementation throws
71
+ // Symbol(kExitCode) on proc_exit. Set returnOnExit to false so Node exits
72
+ // with the WASI status instead.
73
+ returnOnExit: false,
74
version: "preview1",
75
});
76
0 commit comments