diff options
author | Matteo Collina <hello@matteocollina.com> | 2018-05-04 09:00:07 +0300 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2020-02-11 22:59:09 +0300 |
commit | 9fdb6e6aaf45b2364bac89a8f240772f49503ee6 (patch) | |
tree | 6ffbc990c3bdad00c598217cd6a63770a9d1cd3b /src/node_internals.h | |
parent | 1c11ea43883256b6bc9e64a28bbc22f88c5c2b38 (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_internals.h')
-rw-r--r-- | src/node_internals.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/node_internals.h b/src/node_internals.h index 64b4d489e1e..8d63f023c1f 100644 --- a/src/node_internals.h +++ b/src/node_internals.h @@ -208,15 +208,13 @@ class InternalCallbackScope { public: enum Flags { kNoFlags = 0, - // Tell the constructor whether its `object` parameter may be empty or not. - kAllowEmptyResource = 1, // Indicates whether 'before' and 'after' hooks should be skipped. - kSkipAsyncHooks = 2, + kSkipAsyncHooks = 1, // Indicates whether nextTick and microtask queues should be skipped. // This should only be used when there is no call into JS in this scope. // (The HTTP parser also uses it for some weird backwards // compatibility issues, but it shouldn't.) - kSkipTaskQueues = 4 + kSkipTaskQueues = 2 }; InternalCallbackScope(Environment* env, v8::Local<v8::Object> object, |