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:
David Xue authored and James M Snell committed 2018-10-17 11:29:44 -07:00
1 parent 083d1012c7
commit 278775a84b
1 file changed
+1 -1
+1 -1
View File
@@ -212,7 +212,7 @@
NativeModule.isInternal = function(id) {
return id.startsWith('internal/') ||
(id === 'worker_threads' &&
!process.binding('config').experimentalWorker);
!internalBinding('options').getOptions('--experimental-worker'));
};
}