| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent ff7a116 commit ebdcf91
25 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -30,7 +30,7 @@ const util = require('util'); | |||
| 30 | 30 | const EventEmitter = require('events'); | |
| 31 | 31 | const errors = require('internal/errors'); | |
| 32 | 32 | const { createHook } = require('async_hooks'); | |
| 33 | - const { internalBinding } = require('internal/bootstrap_loaders'); | ||
| 33 | + const { internalBinding } = require('internal/bootstrap/loaders'); | ||
| 34 | 34 | ||
| 35 | 35 | // overwrite process.domain with a getter/setter that will allow for more | |
| 36 | 36 | // effective optimizations | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,7 +2,7 @@ | |||
| 2 | 2 | // modules. In contrast, user land modules are loaded using | |
| 3 | 3 | // lib/module.js (CommonJS Modules) or lib/internal/loader/* (ES Modules). | |
| 4 | 4 | // | |
| 5 | - // This file is compiled and run by node.cc before bootstrap_node.js | ||
| 5 | + // This file is compiled and run by node.cc before bootstrap/node.js | ||
| 6 | 6 | // was called, therefore the loaders are bootstraped before we start to | |
| 7 | 7 | // actually bootstrap Node.js. It creates the following objects: | |
| 8 | 8 | // | |
@@ -29,7 +29,7 @@ | |||
| 29 | 29 | // so they can be loaded faster without the cost of I/O. This class makes the | |
| 30 | 30 | // lib/internal/*, deps/internal/* modules and internalBinding() available by | |
| 31 | 31 | // default to core modules, and lets the core modules require itself via | |
| 32 | - // require('internal/bootstrap_loaders') even when this file is not written in | ||
| 32 | + // require('internal/bootstrap/loaders') even when this file is not written in | ||
| 33 | 33 | // CommonJS style. | |
| 34 | 34 | // | |
| 35 | 35 | // Other objects: | |
@@ -111,7 +111,7 @@ | |||
| 111 | 111 | // Think of this as module.exports in this file even though it is not | |
| 112 | 112 | // written in CommonJS style. | |
| 113 | 113 | const loaderExports = { internalBinding, NativeModule }; | |
| 114 | - const loaderId = 'internal/bootstrap_loaders'; | ||
| 114 | + const loaderId = 'internal/bootstrap/loaders'; | ||
| 115 | 115 | NativeModule.require = function(id) { | |
| 116 | 116 | if (id === loaderId) { | |
| 117 | 117 | return loaderExports; | |
@@ -211,6 +211,6 @@ | |||
| 211 | 211 | }; | |
| 212 | 212 | ||
| 213 | 213 | // This will be passed to the bootstrapNodeJSCore function in | |
| 214 | - // bootstrap_node.js. | ||
| 214 | + // bootstrap/node.js. | ||
| 215 | 215 | return loaderExports; | |
| 216 | 216 | }); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -5,7 +5,7 @@ | |||
| 5 | 5 | // to the performance of the startup process, many dependencies are invoked | |
| 6 | 6 | // lazily. | |
| 7 | 7 | // | |
| 8 | - // Before this file is run, lib/internal/bootstrap_loaders.js gets run first | ||
| 8 | + // Before this file is run, lib/internal/bootstrap/loaders.js gets run first | ||
| 9 | 9 | // to bootstrap the internal binding and module loaders, including | |
| 10 | 10 | // process.binding(), process._linkedBinding(), internalBinding() and | |
| 11 | 11 | // NativeModule. And then { internalBinding, NativeModule } will be passed | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,6 +1,6 @@ | |||
| 1 | 1 | 'use strict'; | |
| 2 | 2 | ||
| 3 | - const { internalBinding } = require('internal/bootstrap_loaders'); | ||
| 3 | + const { internalBinding } = require('internal/bootstrap/loaders'); | ||
| 4 | 4 | const { ModuleWrap } = internalBinding('module_wrap'); | |
| 5 | 5 | const debug = require('util').debuglog('esm'); | |
| 6 | 6 | const ArrayJoin = Function.call.bind(Array.prototype.join); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3,7 +3,7 @@ | |||
| 3 | 3 | const { URL } = require('url'); | |
| 4 | 4 | const CJSmodule = require('module'); | |
| 5 | 5 | const internalFS = require('internal/fs'); | |
| 6 | - const { NativeModule, internalBinding } = require('internal/bootstrap_loaders'); | ||
| 6 | + const { NativeModule, internalBinding } = require('internal/bootstrap/loaders'); | ||
| 7 | 7 | const { extname } = require('path'); | |
| 8 | 8 | const { realpathSync } = require('fs'); | |
| 9 | 9 | const preserveSymlinks = !!process.binding('config').preserveSymlinks; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,6 +1,6 @@ | |||
| 1 | 1 | 'use strict'; | |
| 2 | 2 | ||
| 3 | - const { internalBinding } = require('internal/bootstrap_loaders'); | ||
| 3 | + const { internalBinding } = require('internal/bootstrap/loaders'); | ||
| 4 | 4 | const { ModuleWrap } = internalBinding('module_wrap'); | |
| 5 | 5 | const { SafeSet, SafePromise } = require('internal/safe_globals'); | |
| 6 | 6 | const { decorateErrorStack } = require('internal/util'); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,5 +2,5 @@ | |||
| 2 | 2 | ||
| 3 | 3 | // exposes ModuleWrap for testing | |
| 4 | 4 | ||
| 5 | - const { internalBinding } = require('internal/bootstrap_loaders'); | ||
| 5 | + const { internalBinding } = require('internal/bootstrap/loaders'); | ||
| 6 | 6 | module.exports = internalBinding('module_wrap').ModuleWrap; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,6 +1,6 @@ | |||
| 1 | 1 | 'use strict'; | |
| 2 | 2 | ||
| 3 | - const { NativeModule, internalBinding } = require('internal/bootstrap_loaders'); | ||
| 3 | + const { NativeModule, internalBinding } = require('internal/bootstrap/loaders'); | ||
| 4 | 4 | const { ModuleWrap } = internalBinding('module_wrap'); | |
| 5 | 5 | const internalCJSModule = require('internal/module'); | |
| 6 | 6 | const CJSModule = require('module'); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,6 +1,6 @@ | |||
| 1 | 1 | 'use strict'; | |
| 2 | 2 | ||
| 3 | - const { internalBinding } = require('internal/bootstrap_loaders'); | ||
| 3 | + const { internalBinding } = require('internal/bootstrap/loaders'); | ||
| 4 | 4 | const { | |
| 5 | 5 | setImportModuleDynamicallyCallback | |
| 6 | 6 | } = internalBinding('module_wrap'); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,6 +1,6 @@ | |||
| 1 | 1 | 'use strict'; | |
| 2 | 2 | ||
| 3 | - const { internalBinding } = require('internal/bootstrap_loaders'); | ||
| 3 | + const { internalBinding } = require('internal/bootstrap/loaders'); | ||
| 4 | 4 | const { emitExperimentalWarning } = require('internal/util'); | |
| 5 | 5 | const { URL } = require('internal/url'); | |
| 6 | 6 | const { kParsingContext, isContext } = process.binding('contextify'); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments