diff options
author | Javier Gonzalez <xaviergonz@gmail.com> | 2018-03-04 21:28:38 +0300 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2018-07-16 02:44:21 +0300 |
commit | fb87d8aa12c8e891857c46e632d37970533f4e92 (patch) | |
tree | fc8105bd274f8401a4e0b14ddb4c5b6784b6517a /src/node_context_data.h | |
parent | d279a8fceea91a0a27158867570d8f203cb372a3 (diff) |
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/node_context_data.h')
-rw-r--r-- | src/node_context_data.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/node_context_data.h b/src/node_context_data.h index 522ce292d21..3892b313540 100644 --- a/src/node_context_data.h +++ b/src/node_context_data.h @@ -19,10 +19,20 @@ namespace node { #define NODE_CONTEXT_ALLOW_WASM_CODE_GENERATION_INDEX 34 #endif +#ifndef NODE_CONTEXT_TAG +#define NODE_CONTEXT_TAG 35 +#endif + +#ifndef NODE_CONTEXT_TAG_BOUNDARY +#define NODE_CONTEXT_TAG_BOUNDARY 36 +#endif + enum ContextEmbedderIndex { kEnvironment = NODE_CONTEXT_EMBEDDER_DATA_INDEX, kSandboxObject = NODE_CONTEXT_SANDBOX_OBJECT_INDEX, kAllowWasmCodeGeneration = NODE_CONTEXT_ALLOW_WASM_CODE_GENERATION_INDEX, + kContextTag = NODE_CONTEXT_TAG, + kContextTagBoundary = NODE_CONTEXT_TAG_BOUNDARY, }; } // namespace node |