Skip to content

Commit 51e7f75

Browse files
LiviaMedeirosaduh95
authored andcommittedJun 11, 2022
wasi: use kEmptyObject
PR-URL: nodejs#43159 Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
1 parent 0313102 commit 51e7f75

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed
 

‎lib/wasi.js

+5-2
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)
Please sign in to comment.