mirror of
https://github.com/nodejs/node.git
synced 2026-11-25 23:01:06 -05:00
lib: migrate to getOptions in loaders.js
PR-URL: https://github.com/nodejs/node/pull/23455 Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
This commit is contained in:
1 parent
083d1012c7
commit
278775a84b
1 file changed
+1
-1
@@ -212,7 +212,7 @@
|
||||
NativeModule.isInternal = function(id) {
|
||||
return id.startsWith('internal/') ||
|
||||
(id === 'worker_threads' &&
|
||||
!process.binding('config').experimentalWorker);
|
||||
!internalBinding('options').getOptions('--experimental-worker'));
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user