diff options
| author | legendecas <legendecas@gmail.com> | 2022-06-14 01:34:31 +0800 |
|---|---|---|
| committer | legendecas <legendecas@gmail.com> | 2022-07-11 21:44:04 +0800 |
| commit | 02eb10b87b2a33afdcb7b2135e6907a9102649c0 (patch) | |
| tree | 4db91653c51c7bf919d98a6535cb318cc2aad723 /src/node_context_data.h | |
| parent | c6ec630b3f48fc761e84b235584f6ee7bb4f0fc1 (diff) | |
| download | node-new-02eb10b87b2a33afdcb7b2135e6907a9102649c0.tar.gz | |
lib,src: add source map support for global eval
Dynamic sources with FunctionConstructor is not supported yet as
V8 prepends lines to the sources which makes the stack line number
incorrect.
PR-URL: https://github.com/nodejs/node/pull/43428
Refs: https://github.com/nodejs/node/issues/43047
Reviewed-By: Ben Coe <bencoe@gmail.com>
Diffstat (limited to 'src/node_context_data.h')
| -rw-r--r-- | src/node_context_data.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/node_context_data.h b/src/node_context_data.h index 912e65b427..42aae872e6 100644 --- a/src/node_context_data.h +++ b/src/node_context_data.h @@ -29,12 +29,18 @@ namespace node { #define NODE_BINDING_LIST_INDEX 36 #endif +#ifndef NODE_CONTEXT_ALLOW_CODE_GENERATION_FROM_STRINGS_INDEX +#define NODE_CONTEXT_ALLOW_CODE_GENERATION_FROM_STRINGS_INDEX 37 +#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, - kBindingListIndex = NODE_BINDING_LIST_INDEX + kBindingListIndex = NODE_BINDING_LIST_INDEX, + kAllowCodeGenerationFromStrings = + NODE_CONTEXT_ALLOW_CODE_GENERATION_FROM_STRINGS_INDEX }; } // namespace node |
