diff options
author | Anna Henningsen <anna@addaleax.net> | 2019-03-10 22:03:15 +0000 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2019-03-21 19:09:45 +0100 |
commit | 96c3224de0e938d308ab579e4cf7336e87c67d88 (patch) | |
tree | 3f556d5c7bfb5d9be23fb20c8ebe0514a33a5d5e /src/env-inl.h | |
parent | 1500e5de64e4f7cfb482ad353293645a5599d93f (diff) | |
download | android-node-v8-96c3224de0e938d308ab579e4cf7336e87c67d88.tar.gz android-node-v8-96c3224de0e938d308ab579e4cf7336e87c67d88.tar.bz2 android-node-v8-96c3224de0e938d308ab579e4cf7336e87c67d88.zip |
src: remove `AddPromiseHook()`
Remove this, as the underlying `Isolate::SetPromiseHook()` may be
removed as well in its current form in the future, and `async_hooks`
also serves this use case.
Refs: https://docs.google.com/document/d/1g8OrG5lMIUhRn1zbkutgY83MiTSMx-0NHDs8Bf-nXxM/
Refs: https://github.com/nodejs/node/pull/26529
PR-URL: https://github.com/nodejs/node/pull/26574
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ali Ijaz Sheikh <ofrobots@google.com>
Diffstat (limited to 'src/env-inl.h')
-rw-r--r-- | src/env-inl.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/env-inl.h b/src/env-inl.h index 33c7868e24..1197115318 100644 --- a/src/env-inl.h +++ b/src/env-inl.h @@ -286,7 +286,7 @@ inline void Environment::AssignToContext(v8::Local<v8::Context> context, const ContextInfo& info) { context->SetAlignedPointerInEmbedderData( ContextEmbedderIndex::kEnvironment, this); - // Used by EnvPromiseHook to know that we are on a node context. + // Used by Environment::GetCurrent to know that we are on a node context. context->SetAlignedPointerInEmbedderData( ContextEmbedderIndex::kContextTag, Environment::kNodeContextTagPtr); #if HAVE_INSPECTOR |