| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 6cfb1ac commit 2178f17
27 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -326,6 +326,8 @@ class NativeModule { | |||
| 326 | 326 | requireWithFallbackInDeps : nativeModuleRequire; | |
| 327 | 327 | ||
| 328 | 328 | const fn = compileFunction(id); | |
| 329 | + // Arguments must match the parameters specified in | ||
| 330 | + // NativeModuleLoader::LookupAndCompile(). | ||
| 329 | 331 | fn(this.exports, requireFn, this, process, internalBinding, primordials); | |
| 330 | 332 | ||
| 331 | 333 | this.loaded = true; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -6,7 +6,7 @@ | |||
| 6 | 6 | // | |
| 7 | 7 | // This file is expected not to perform any asynchronous operations itself | |
| 8 | 8 | // when being executed - those should be done in either | |
| 9 | - // `lib/internal/bootstrap/pre_execution.js` or in main scripts. The majority | ||
| 9 | + // `lib/internal/process/pre_execution.js` or in main scripts. The majority | ||
| 10 | 10 | // of the code here focuses on setting up the global proxy and the process | |
| 11 | 11 | // object in a synchronous manner. | |
| 12 | 12 | // As special caution is given to the performance of the startup process, | |
@@ -28,7 +28,7 @@ | |||
| 28 | 28 | // Then, depending on how the Node.js instance is launched, one of the main | |
| 29 | 29 | // scripts in `lib/internal/main` will be selected by C++ to start the actual | |
| 30 | 30 | // execution. They may run additional setups exported by | |
| 31 | - // `lib/internal/bootstrap/pre_execution.js` depending on the runtime states. | ||
| 31 | + // `lib/internal/process/pre_execution.js` depending on the runtime states. | ||
| 32 | 32 | ||
| 33 | 33 | 'use strict'; | |
| 34 | 34 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -4,8 +4,9 @@ | |||
| 4 | 4 | // instead of actually running the file. | |
| 5 | 5 | ||
| 6 | 6 | const { | |
| 7 | - prepareMainThreadExecution | ||
| 8 | - } = require('internal/bootstrap/pre_execution'); | ||
| 7 | + prepareMainThreadExecution, | ||
| 8 | + markBootstrapComplete | ||
| 9 | + } = require('internal/process/pre_execution'); | ||
| 9 | 10 | ||
| 10 | 11 | const { | |
| 11 | 12 | readStdin | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -4,10 +4,10 @@ | |||
| 4 | 4 | // that depends on run time states. | |
| 5 | 5 | // It is currently only intended for preparing contexts for embedders. | |
| 6 | 6 | ||
| 7 | - /* global markBootstrapComplete */ | ||
| 8 | 7 | const { | |
| 9 | - prepareMainThreadExecution | ||
| 10 | - } = require('internal/bootstrap/pre_execution'); | ||
| 8 | + prepareMainThreadExecution, | ||
| 9 | + markBootstrapComplete | ||
| 10 | + } = require('internal/process/pre_execution'); | ||
| 11 | 11 | ||
| 12 | 12 | prepareMainThreadExecution(); | |
| 13 | 13 | markBootstrapComplete(); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3,8 +3,9 @@ | |||
| 3 | 3 | // Stdin is not a TTY, we will read it and execute it. | |
| 4 | 4 | ||
| 5 | 5 | const { | |
| 6 | - prepareMainThreadExecution | ||
| 7 | - } = require('internal/bootstrap/pre_execution'); | ||
| 6 | + prepareMainThreadExecution, | ||
| 7 | + markBootstrapComplete | ||
| 8 | + } = require('internal/process/pre_execution'); | ||
| 8 | 9 | ||
| 9 | 10 | const { getOptionValue } = require('internal/options'); | |
| 10 | 11 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -8,8 +8,9 @@ const { | |||
| 8 | 8 | } = primordials; | |
| 9 | 9 | ||
| 10 | 10 | const { | |
| 11 | - prepareMainThreadExecution | ||
| 12 | - } = require('internal/bootstrap/pre_execution'); | ||
| 11 | + prepareMainThreadExecution, | ||
| 12 | + markBootstrapComplete | ||
| 13 | + } = require('internal/process/pre_execution'); | ||
| 13 | 14 | const { evalModule, evalScript } = require('internal/process/execution'); | |
| 14 | 15 | const { addBuiltinLibsToObject } = require('internal/modules/cjs/helpers'); | |
| 15 | 16 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3,8 +3,9 @@ | |||
| 3 | 3 | // `node inspect ...` or `node debug ...` | |
| 4 | 4 | ||
| 5 | 5 | const { | |
| 6 | - prepareMainThreadExecution | ||
| 7 | - } = require('internal/bootstrap/pre_execution'); | ||
| 6 | + prepareMainThreadExecution, | ||
| 7 | + markBootstrapComplete | ||
| 8 | + } = require('internal/process/pre_execution'); | ||
| 8 | 9 | ||
| 9 | 10 | prepareMainThreadExecution(); | |
| 10 | 11 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -114,7 +114,7 @@ function requireForUserSnapshot(id) { | |||
| 114 | 114 | function main() { | |
| 115 | 115 | const { | |
| 116 | 116 | prepareMainThreadExecution | |
| 117 | - } = require('internal/bootstrap/pre_execution'); | ||
| 117 | + } = require('internal/process/pre_execution'); | ||
| 118 | 118 | ||
| 119 | 119 | prepareMainThreadExecution(true, false); | |
| 120 | 120 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -20,8 +20,9 @@ const { types } = internalBinding('options'); | |||
| 20 | 20 | const hasCrypto = Boolean(process.versions.openssl); | |
| 21 | 21 | ||
| 22 | 22 | const { | |
| 23 | - prepareMainThreadExecution | ||
| 24 | - } = require('internal/bootstrap/pre_execution'); | ||
| 23 | + prepareMainThreadExecution, | ||
| 24 | + markBootstrapComplete | ||
| 25 | + } = require('internal/process/pre_execution'); | ||
| 25 | 26 | ||
| 26 | 27 | const typeLookup = []; | |
| 27 | 28 | for (const key of ObjectKeys(types)) | |
| Back | FazBrowse Home | New Git URL |
0 commit comments