Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7fc432f

Browse filesBrowse files
LiviaMedeirosdanielleadams
authored andcommitted
wasi: use kEmptyObject
PR-URL: #43159 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
1 parent 024b396 commit 7fc432f
Copy full SHA for 7fc432f

File tree

Expand file treeCollapse file tree

1 file changed

+5
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-2
lines changed
Open diff view settings
Collapse file

‎lib/wasi.js‎

Copy file name to clipboardExpand all lines: lib/wasi.js
+5-2Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ const {
1313
ERR_INVALID_ARG_TYPE,
1414
ERR_WASI_ALREADY_STARTED
1515
} = require('internal/errors').codes;
16-
const { emitExperimentalWarning } = require('internal/util');
16+
const {
17+
emitExperimentalWarning,
18+
kEmptyObject,
19+
} = require('internal/util');
1720
const { isArrayBuffer } = require('internal/util/types');
1821
const {
1922
validateArray,
@@ -55,7 +58,7 @@ function setupInstance(self, instance) {
5558
}
5659

5760
class WASI {
58-
constructor(options = {}) {
61+
constructor(options = kEmptyObject) {
5962
validateObject(options, 'options');
6063

6164
if (options.args !== undefined)

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.