From 773abe59ee6e1af67d5019119d0b28fa1dbd2a68 Mon Sep 17 00:00:00 2001 From: Michael Dawson Date: Tue, 4 Apr 2023 17:24:46 -0400 Subject: [PATCH] squash: address comments Signed-off-by: Michael Dawson --- test/wasi/test-wasi.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/wasi/test-wasi.js b/test/wasi/test-wasi.js index 7ac69398ddf5b5..f1f3ece4b4e1a6 100644 --- a/test/wasi/test-wasi.js +++ b/test/wasi/test-wasi.js @@ -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,