diff options
author | Javier Gonzalez <xaviergonz@gmail.com> | 2018-03-04 19:28:38 +0100 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2018-07-16 01:44:21 +0200 |
commit | fb87d8aa12c8e891857c46e632d37970533f4e92 (patch) | |
tree | fc8105bd274f8401a4e0b14ddb4c5b6784b6517a /src/env.h | |
parent | d279a8fceea91a0a27158867570d8f203cb372a3 (diff) | |
download | android-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.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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_; |