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:
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>;
|
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!;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue