Skip to content

Commit 499fa04

Browse files
Copilotjakebailey
andauthored
Port TypeScript PR #62201: Update Node.js core modules (#2724)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: jakebailey <5341706+jakebailey@users.noreply.github.com>
1 parent e8cb5a7 commit 499fa04

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

internal/core/nodemodules.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import (
55
"sync"
66
)
77

8+
// require('module').builtinModules.filter(x => !x.match(/^(?:_|node:)/))
89
var UnprefixedNodeCoreModules = map[string]bool{
910
"assert": true,
1011
"assert/strict": true,
@@ -47,7 +48,6 @@ var UnprefixedNodeCoreModules = map[string]bool{
4748
"stream/web": true,
4849
"string_decoder": true,
4950
"sys": true,
50-
"test/mock_loader": true,
5151
"timers": true,
5252
"timers/promises": true,
5353
"tls": true,
@@ -63,7 +63,9 @@ var UnprefixedNodeCoreModules = map[string]bool{
6363
"zlib": true,
6464
}
6565

66+
// require('module').builtinModules.filter(x => x.startsWith('node:'))
6667
var ExclusivelyPrefixedNodeCoreModules = map[string]bool{
68+
"node:quic": true,
6769
"node:sea": true,
6870
"node:sqlite": true,
6971
"node:test": true,

0 commit comments

Comments
 (0)