Skip to content

Commit 7fc432f

Browse 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

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)