| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 94a0237 commit 3b305f2
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -435,7 +435,11 @@ Module.isBuiltin = BuiltinModule.isBuiltin; | |||
| 435 | 435 | function initializeCJS() { | |
| 436 | 436 | // This need to be done at runtime in case --expose-internals is set. | |
| 437 | 437 | ||
| 438 | - Module.builtinModules = ObjectFreeze(BuiltinModule.getAllBuiltinModuleIds()); | ||
| 438 | + let modules = Module.builtinModules = BuiltinModule.getAllBuiltinModuleIds(); | ||
| 439 | + if (!getOptionValue('--experimental-quic')) { | ||
| 440 | + modules = modules.filter((i) => i !== 'node:quic'); | ||
| 441 | + } | ||
| 442 | + Module.builtinModules = ObjectFreeze(modules); | ||
| 439 | 443 | ||
| 440 | 444 | initializeCjsConditions(); | |
| 441 | 445 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments