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 authored and denobot committed Feb 1, 2021
1 parent c93202e commit bc13578
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 bc13578

Please sign in to comment.