We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e9efac6 commit ff5f1fbCopy full SHA for ff5f1fb
lib/internal/modules/cjs/helpers.js
@@ -9,6 +9,8 @@ const {
9
CHAR_HASH,
10
} = require('internal/constants');
11
12
+const { getOptions } = internalBinding('options');
13
+
14
// Invoke with makeRequireFunction(module) where |module| is the Module object
15
// to use as the context for the require() function.
16
function makeRequireFunction(mod) {
@@ -105,7 +107,7 @@ const builtinLibs = [
105
107
'v8', 'vm', 'zlib'
106
108
];
109
-if (process.binding('config').experimentalWorker) {
110
+if (getOptions('--experimental-worker')) {
111
builtinLibs.push('worker_threads');
112
builtinLibs.sort();
113
}
0 commit comments