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 <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>
  • 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.