Skip to content

Commit 6acc891

Browse files
rxiaythMylesBorins
authored andcommitted
lib: migrate to getOptions in loaders.js
PR-URL: #23455 Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Gus Caplan <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
1 parent c39b910 commit 6acc891

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/bootstrap/loaders.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@
218218
NativeModule.isInternal = function(id) {
219219
return id.startsWith('internal/') ||
220220
(id === 'worker_threads' &&
221-
!process.binding('config').experimentalWorker);
221+
!internalBinding('options').getOptions('--experimental-worker'));
222222
};
223223
}
224224

0 commit comments

Comments
 (0)