summaryrefslogtreecommitdiff
path: root/src/env.h
diff options
context:
space:
mode:
authorJavier Gonzalez <xaviergonz@gmail.com>2018-03-04 19:28:38 +0100
committerAnna Henningsen <anna@addaleax.net>2018-07-16 01:44:21 +0200
commitfb87d8aa12c8e891857c46e632d37970533f4e92 (patch)
treefc8105bd274f8401a4e0b14ddb4c5b6784b6517a /src/env.h
parentd279a8fceea91a0a27158867570d8f203cb372a3 (diff)
downloadandroid-node-v8-fb87d8aa12c8e891857c46e632d37970533f4e92.tar.gz
android-node-v8-fb87d8aa12c8e891857c46e632d37970533f4e92.tar.bz2
android-node-v8-fb87d8aa12c8e891857c46e632d37970533f4e92.zip
src: fix async hooks crashing when there is no node context
PR-URL: https://github.com/nodejs/node/pull/19134 Fixes: https://github.com/nodejs/node/issues/19104 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
Diffstat (limited to 'src/env.h')
-rw-r--r--src/env.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/env.h b/src/env.h
index 120048fe00..acbdd01328 100644
--- a/src/env.h
+++ b/src/env.h
@@ -905,6 +905,8 @@ class Environment {
uint64_t thread_id_ = 0;
std::unordered_set<worker::Worker*> sub_worker_contexts_;
+ static void* kNodeContextTagPtr;
+ static int const kNodeContextTag;
#if HAVE_INSPECTOR
std::unique_ptr<inspector::Agent> inspector_agent_;