Skip to content

Commit 278775a

Browse files
rxiaythjasnell
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 083d101 commit 278775a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: lib/internal/bootstrap/loaders.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@
212212
NativeModule.isInternal = function(id) {
213213
return id.startsWith('internal/') ||
214214
(id === 'worker_threads' &&
215-
!process.binding('config').experimentalWorker);
215+
!internalBinding('options').getOptions('--experimental-worker'));
216216
};
217217
}
218218

0 commit comments

Comments
 (0)