We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5811d08 commit b252ffaCopy full SHA for b252ffa
lib/internal/bootstrap/realm.js
@@ -316,9 +316,8 @@ class BuiltinModule {
316
317
// Modules starting with underscore (e.g. `_http_agent`) can be required
318
// by users but those are discouraged and should not be exposed as proper
319
- // public ones, so if `id` starts with `_` return `false` right away
320
- if (StringPrototypeStartsWith(id, '_') ||
321
- StringPrototypeStartsWith(id, 'node:_') {
+ // public ones, so if `id` starts with `_` (or `node:_`) return `false` right away
+ if (StringPrototypeStartsWith(id, '_') || StringPrototypeStartsWith(id, 'node:_')) {
322
return false;
323
}
324
0 commit comments