mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
wasi: use kEmptyObject
PR-URL: https://github.com/nodejs/node/pull/43159 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
This commit is contained in:
parent
0313102aaa
commit
51e7f751c7
@ -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,
|
||||
@ -55,7 +58,7 @@ function setupInstance(self, instance) {
|
||||
}
|
||||
|
||||
class WASI {
|
||||
constructor(options = {}) {
|
||||
constructor(options = kEmptyObject) {
|
||||
validateObject(options, 'options');
|
||||
|
||||
if (options.args !== undefined)
|
||||
|
Loading…
Reference in New Issue
Block a user