From 96c3224de0e938d308ab579e4cf7336e87c67d88 Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Sun, 10 Mar 2019 22:03:15 +0000 Subject: 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 Reviewed-By: Colin Ihrig Reviewed-By: Benjamin Gruenbaum Reviewed-By: Gus Caplan Reviewed-By: James M Snell Reviewed-By: Ali Ijaz Sheikh --- src/env-inl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/env-inl.h') 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 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 -- cgit v1.2.3