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 MylesBorins committed Oct 30, 2018
1 parent c39b910 commit 6acc891
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 @@ -218,7 +218,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 6acc891

Please sign in to comment.