Skip to content

Commit 773abe5

Browse files
committed
squash: address comments
Signed-off-by: Michael Dawson <[email protected]>
1 parent 1437def commit 773abe5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/wasi/test-wasi.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,9 @@ if (process.argv[2] === 'wasi-child-preview1') {
6666
if (options.stdin !== undefined)
6767
opts.input = options.stdin;
6868

69-
if (options.returnOnExit === false)
70-
opts.env.RETURN_ON_EXIT = 'false';
69+
if ('returnOnExit' in options) {
70+
opts.env.RETURN_ON_EXIT = options.returnOnExit;
71+
}
7172

7273
const child = cp.spawnSync(process.execPath, [
7374
...args,

0 commit comments

Comments
 (0)