1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-29 16:30:56 -05:00

refactor(std/wasi): prefer nullish coalescing (#8607)

This commit is contained in:
Casper Beyer 2020-12-04 20:53:16 +08:00 committed by GitHub
parent e6b90beb3d
commit ae21a9569b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -296,8 +296,8 @@ export default class Context {
exports: Record<string, WebAssembly.ImportValue>; exports: Record<string, WebAssembly.ImportValue>;
constructor(options: ContextOptions) { constructor(options: ContextOptions) {
this.args = options.args ? options.args : []; this.args = options.args ?? [];
this.env = options.env ? options.env : {}; this.env = options.env ?? {};
this.exitOnReturn = options.exitOnReturn ?? true; this.exitOnReturn = options.exitOnReturn ?? true;
this.memory = null!; this.memory = null!;