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) {