Skip to content

Commit

Permalink
wasi: use kEmptyObject
Browse files Browse the repository at this point in the history
PR-URL: #43159
Reviewed-By: Matteo Collina <[email protected]>
Reviewed-By: Antoine du Hamel <[email protected]>
  • Loading branch information
LiviaMedeiros authored and danielleadams committed Jun 13, 2022
1 parent 024b396 commit 7fc432f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/wasi.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ const {
ERR_INVALID_ARG_TYPE,
ERR_WASI_ALREADY_STARTED
} = require('internal/errors').codes;
const { emitExperimentalWarning } = require('internal/util');
const {
emitExperimentalWarning,
kEmptyObject,
} = require('internal/util');
const { isArrayBuffer } = require('internal/util/types');
const {
validateArray,
Expand Down Expand Up @@ -55,7 +58,7 @@ function setupInstance(self, instance) {
}

class WASI {
constructor(options = {}) {
constructor(options = kEmptyObject) {
validateObject(options, 'options');

if (options.args !== undefined)
Expand Down

0 comments on commit 7fc432f

Please sign in to comment.