Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShelley Vohr <shelley.vohr@gmail.com>2020-02-25 06:14:15 +0300
committerShelley Vohr <shelley.vohr@gmail.com>2020-02-27 19:04:40 +0300
commit18ddb1da38ad6eb78c357f182b5379a8ab3332ce (patch)
treed35ed217d407830a3697d03880778f9129c19962 /src/node_main_instance.cc
parenta29b6cd921fddeaed07b3a68b4c4f75a26b3e61f (diff)
src: move InternalCallbackScope to StartExecution
PR-URL: https://github.com/nodejs/node/pull/31944 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Stephen Belanger <admin@stephenbelanger.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Diffstat (limited to 'src/node_main_instance.cc')
-rw-r--r--src/node_main_instance.cc9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/node_main_instance.cc b/src/node_main_instance.cc
index d53eaa7329b..6f240d7e809 100644
--- a/src/node_main_instance.cc
+++ b/src/node_main_instance.cc
@@ -122,14 +122,7 @@ int NodeMainInstance::Run() {
Context::Scope context_scope(env->context());
if (exit_code == 0) {
- {
- InternalCallbackScope callback_scope(
- env.get(),
- Object::New(isolate_),
- { 1, 0 },
- InternalCallbackScope::kSkipAsyncHooks);
- LoadEnvironment(env.get());
- }
+ LoadEnvironment(env.get());
env->set_trace_sync_io(env->options()->trace_sync_io);