We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
kEmptyObject
1 parent 024b396 commit 7fc432fCopy full SHA for 7fc432f
lib/wasi.js
@@ -13,7 +13,10 @@ const {
13
ERR_INVALID_ARG_TYPE,
14
ERR_WASI_ALREADY_STARTED
15
} = require('internal/errors').codes;
16
-const { emitExperimentalWarning } = require('internal/util');
+const {
17
+ emitExperimentalWarning,
18
+ kEmptyObject,
19
+} = require('internal/util');
20
const { isArrayBuffer } = require('internal/util/types');
21
const {
22
validateArray,
@@ -55,7 +58,7 @@ function setupInstance(self, instance) {
55
58
}
56
59
57
60
class WASI {
- constructor(options = {}) {
61
+ constructor(options = kEmptyObject) {
62
validateObject(options, 'options');
63
64
if (options.args !== undefined)
0 commit comments