diff --git a/std/wasi/snapshot_preview1.ts b/std/wasi/snapshot_preview1.ts index 30756fe829..98850fc1f2 100644 --- a/std/wasi/snapshot_preview1.ts +++ b/std/wasi/snapshot_preview1.ts @@ -296,8 +296,8 @@ export default class Context { exports: Record; constructor(options: ContextOptions) { - this.args = options.args ? options.args : []; - this.env = options.env ? options.env : {}; + this.args = options.args ?? []; + this.env = options.env ?? {}; this.exitOnReturn = options.exitOnReturn ?? true; this.memory = null!;