mirror of
https://github.com/denoland/deno.git
synced 2024-11-26 16:09:27 -05:00
refactor(std/wasi): prefer nullish coalescing (#8607)
This commit is contained in:
parent
e6b90beb3d
commit
ae21a9569b
1 changed files with 2 additions and 2 deletions
|
@ -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!;
|
||||
|
||||
|
|
Loading…
Reference in a new issue