diff options
author | Shelley Vohr <shelley.vohr@gmail.com> | 2020-02-25 06:14:15 +0300 |
---|---|---|
committer | Shelley Vohr <shelley.vohr@gmail.com> | 2020-02-27 19:04:40 +0300 |
commit | 18ddb1da38ad6eb78c357f182b5379a8ab3332ce (patch) | |
tree | d35ed217d407830a3697d03880778f9129c19962 /src/node_main_instance.cc | |
parent | a29b6cd921fddeaed07b3a68b4c4f75a26b3e61f (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.cc | 9 |
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); |