mirror of
https://github.com/nodejs/node.git
synced 2025-05-11 01:27:14 +00:00

This patch: - Make NativeModuleLoader::LookupAndCompile() detect parameters based on module IDs. This allows us to compile more builtins when generating the embedded bootstrap, including - internal/per_context/* - internal/bootstrap/* - internal/main/* - Move pre_execution.js to lib/internal/process as it needs to be compiled as a regular built-in module, unlike other scripts in lib/internal/bootstrap - Move markBootstrapComplete() to the performance binding instead of making it a function-wrapper-based global to reduce number of special cases. PR-URL: https://github.com/nodejs/node/pull/44018 Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
19 lines
332 B
JavaScript
19 lines
332 B
JavaScript
'use strict';
|
|
|
|
// `node inspect ...` or `node debug ...`
|
|
|
|
const {
|
|
prepareMainThreadExecution,
|
|
markBootstrapComplete
|
|
} = require('internal/process/pre_execution');
|
|
|
|
prepareMainThreadExecution();
|
|
|
|
|
|
markBootstrapComplete();
|
|
|
|
// Start the debugger agent.
|
|
process.nextTick(() => {
|
|
require('internal/debugger/inspect').start();
|
|
});
|