Skip to content

Commit

Permalink
defaultOnly comment
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Oct 14, 2019
1 parent 2d4dfef commit fe0c923
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/internal/bootstrap/loaders.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,8 @@ function NativeModule(id) {
this.loaded = false;
this.loading = false;
this.canBeRequiredByUsers = !id.startsWith('internal/');
// When using --expose-internals, we do not want to reflect the named exports
// from core modules as this can trigger getters.
this.defaultOnly = false;
}

Expand Down

0 comments on commit fe0c923

Please sign in to comment.