Skip to content

Commit

Permalink
lib: migrate to getOptions in loaders.js
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
rxiayth authored and jasnell committed Oct 17, 2018
1 parent 083d101 commit 278775a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/internal/bootstrap/loaders.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@
NativeModule.isInternal = function(id) {
return id.startsWith('internal/') ||
(id === 'worker_threads' &&
!process.binding('config').experimentalWorker);
!internalBinding('options').getOptions('--experimental-worker'));
};
}

Expand Down

0 comments on commit 278775a

Please sign in to comment.