Skip to content

Commit b252ffa

Browse files
fix incorrectly updated code
1 parent 5811d08 commit b252ffa

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/internal/bootstrap/realm.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -316,9 +316,8 @@ class BuiltinModule {
316316

317317
// Modules starting with underscore (e.g. `_http_agent`) can be required
318318
// 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:_') {
319+
// public ones, so if `id` starts with `_` (or `node:_`) return `false` right away
320+
if (StringPrototypeStartsWith(id, '_') || StringPrototypeStartsWith(id, 'node:_')) {
322321
return false;
323322
}
324323

0 commit comments

Comments
 (0)