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:
authorMatteo Collina <hello@matteocollina.com>2018-05-04 09:00:07 +0300
committerAnna Henningsen <anna@addaleax.net>2020-02-11 22:59:09 +0300
commit9fdb6e6aaf45b2364bac89a8f240772f49503ee6 (patch)
tree6ffbc990c3bdad00c598217cd6a63770a9d1cd3b /src/node_main_instance.cc
parent1c11ea43883256b6bc9e64a28bbc22f88c5c2b38 (diff)
async_hooks: add executionAsyncResource
Remove the need for the destroy hook in the basic APM case. Co-authored-by: Stephen Belanger <admin@stephenbelanger.com> PR-URL: https://github.com/nodejs/node/pull/30959 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Vladimir de Turckheim <vlad2t@hotmail.com> Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/node_main_instance.cc')
-rw-r--r--src/node_main_instance.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/node_main_instance.cc b/src/node_main_instance.cc
index 1453e1ea6a3..ad6966cf4fc 100644
--- a/src/node_main_instance.cc
+++ b/src/node_main_instance.cc
@@ -121,10 +121,9 @@ int NodeMainInstance::Run() {
{
InternalCallbackScope callback_scope(
env.get(),
- Local<Object>(),
+ Object::New(isolate_),
{ 1, 0 },
- InternalCallbackScope::kAllowEmptyResource |
- InternalCallbackScope::kSkipAsyncHooks);
+ InternalCallbackScope::kSkipAsyncHooks);
LoadEnvironment(env.get());
}