mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -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
e872089158
commit
6f01a792c8
1 file changed
+1
-1
@@ -218,7 +218,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