We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1437def commit 773abe5Copy full SHA for 773abe5
test/wasi/test-wasi.js
@@ -66,8 +66,9 @@ if (process.argv[2] === 'wasi-child-preview1') {
66
if (options.stdin !== undefined)
67
opts.input = options.stdin;
68
69
- if (options.returnOnExit === false)
70
- opts.env.RETURN_ON_EXIT = 'false';
+ if ('returnOnExit' in options) {
+ opts.env.RETURN_ON_EXIT = options.returnOnExit;
71
+ }
72
73
const child = cp.spawnSync(process.execPath, [
74
...args,
0 commit comments