node/lib/internal/main
Joyee Cheung e776b013ad
src: do not call into JS in the maxAsyncCallStackDepthChanged interrupt
If Debugger.setAsyncCallStackDepth is sent during bootstrap,
we cannot immediately call into JS to enable the hooks, which could
interrupt the JS execution of bootstrap. So instead we save the
notification in the inspector agent if it's sent in the middle of
bootstrap, and process the notification later here.

Refs: https://github.com/nodejs/node/issues/26798

PR-URL: https://github.com/nodejs/node/pull/26935
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Eugene Ostroukhov <eostroukhov@google.com>
Reviewed-By: Minwoo Jung <minwoo@nodesource.com>
Signed-off-by: Beth Griggs <Bethany.Griggs@uk.ibm.com>
2019-04-08 23:15:16 +01:00
..
.eslintrc.yaml
check_syntax.js src: move async hooks trace events setup to pre_execution.js 2019-02-28 23:35:36 +11:00
eval_stdin.js process: group main thread execution preparation code 2019-02-10 20:20:08 +01:00
eval_string.js process: group main thread execution preparation code 2019-02-10 20:20:08 +01:00
inspect.js process: call prepareMainThreadExecution in node inspect 2019-03-27 20:30:13 +01:00
print_bash_completion.js process: call prepareMainThreadExecution in all main thread scripts 2019-03-27 20:47:29 +01:00
print_help.js net: some scattered cleanup 2019-03-27 21:58:56 +01:00
prof_process.js process: call prepareMainThreadExecution in all main thread scripts 2019-03-27 20:47:29 +01:00
repl.js process: group main thread execution preparation code 2019-02-10 20:20:08 +01:00
run_main_module.js process: normalize process.argv before user code execution 2019-02-10 20:20:18 +01:00
run_third_party_main.js lib: run prepareMainThreadExecution for third_party_main 2019-03-27 22:10:28 +01:00
worker_thread.js src: do not call into JS in the maxAsyncCallStackDepthChanged interrupt 2019-04-08 23:15:16 +01:00