From fb87d8aa12c8e891857c46e632d37970533f4e92 Mon Sep 17 00:00:00 2001 From: Javier Gonzalez Date: Sun, 4 Mar 2018 19:28:38 +0100 Subject: 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 Reviewed-By: James M Snell Reviewed-By: Tiancheng "Timothy" Gu --- src/env.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/env.h') 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 sub_worker_contexts_; + static void* kNodeContextTagPtr; + static int const kNodeContextTag; #if HAVE_INSPECTOR std::unique_ptr inspector_agent_; -- cgit v1.2.3