Skip to content

Commit

Permalink
refactor(wasi): prefer nullish coalescing (denoland/deno#8607)
Browse files Browse the repository at this point in the history
  • Loading branch information
caspervonb committed Jan 24, 2021
1 parent 7d90d77 commit f4e32f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wasi/snapshot_preview1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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!;

Expand Down

0 comments on commit f4e32f3

Please sign in to comment.