diff options
author | Matteo Collina <hello@matteocollina.com> | 2018-05-04 08:00:07 +0200 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2020-02-11 20:59:09 +0100 |
commit | 9fdb6e6aaf45b2364bac89a8f240772f49503ee6 (patch) | |
tree | 6ffbc990c3bdad00c598217cd6a63770a9d1cd3b /src/node_main_instance.cc | |
parent | 1c11ea43883256b6bc9e64a28bbc22f88c5c2b38 (diff) | |
download | node-new-9fdb6e6aaf45b2364bac89a8f240772f49503ee6.tar.gz |
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.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/node_main_instance.cc b/src/node_main_instance.cc index 1453e1ea6a..ad6966cf4f 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()); } |