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 <matteo.collina@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
  • Loading branch information
LiviaMedeiros authored and targos committed Jul 31, 2022
1 parent ca8da5f commit 4ff19da
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 4ff19da

Please sign in to comment.