Skip to content

Commit

Permalink
squash: address comments
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Dawson <[email protected]>
  • Loading branch information
mhdawson committed Apr 6, 2023
1 parent 1437def commit 773abe5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/wasi/test-wasi.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,9 @@ if (process.argv[2] === 'wasi-child-preview1') {
if (options.stdin !== undefined)
opts.input = options.stdin;

if (options.returnOnExit === false)
opts.env.RETURN_ON_EXIT = 'false';
if ('returnOnExit' in options) {
opts.env.RETURN_ON_EXIT = options.returnOnExit;
}

const child = cp.spawnSync(process.execPath, [
...args,
Expand Down

0 comments on commit 773abe5

Please sign in to comment.