diff --git a/lib/internal/bootstrap/loaders.js b/lib/internal/bootstrap/loaders.js index 359812e1e9e342..b3072a02943b6d 100644 --- a/lib/internal/bootstrap/loaders.js +++ b/lib/internal/bootstrap/loaders.js @@ -212,7 +212,7 @@ NativeModule.isInternal = function(id) { return id.startsWith('internal/') || (id === 'worker_threads' && - !process.binding('config').experimentalWorker); + !internalBinding('options').getOptions('--experimental-worker')); }; }