diff options
author | Casper Beyer <caspervonb@pm.me> | 2020-12-04 20:53:16 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-04 13:53:16 +0100 |
commit | ae21a9569b87411f863fa5194c873be69d8bee93 (patch) | |
tree | 756758bf861d3dd8d67b7e6b5386b2788d8e0b4d | |
parent | e6b90beb3d515129b842f9b9a620aebcd88b522a (diff) |
refactor(std/wasi): prefer nullish coalescing (#8607)
-rw-r--r-- | std/wasi/snapshot_preview1.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/std/wasi/snapshot_preview1.ts b/std/wasi/snapshot_preview1.ts index 30756fe82..98850fc1f 100644 --- a/std/wasi/snapshot_preview1.ts +++ b/std/wasi/snapshot_preview1.ts @@ -296,8 +296,8 @@ export default class Context { exports: Record<string, WebAssembly.ImportValue>; 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!; |