From c9c235f103cb47bfac033a5c28e53344a29a4081 Mon Sep 17 00:00:00 2001 From: cjihrig Date: Thu, 2 Apr 2020 22:25:48 -0400 Subject: [PATCH] wasi: replace || with ?? --- lib/wasi.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/wasi.js b/lib/wasi.js index a6d90f0f57365f..bc7f0e6764fe87 100644 --- a/lib/wasi.js +++ b/lib/wasi.js @@ -32,7 +32,7 @@ class WASI { if (options.args !== undefined) validateArray(options.args, 'options.args'); - const args = ArrayPrototypeMap(options.args || [], String); + const args = ArrayPrototypeMap(options.args ?? [], String); const env = []; if (options.env !== undefined) {