diff options
author | Shelley Vohr <shelley.vohr@gmail.com> | 2022-02-24 02:32:30 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-24 02:32:30 +0300 |
commit | 0367b5c35ea0f98b323175a4aaa8e651af7a91e7 (patch) | |
tree | 7df0351688e59aa7fd8d90e7585486dbe9d753cb /src/node.h | |
parent | 7efef7458573281db07327bbc3408f7806466468 (diff) |
src: allow preventing InitializeInspector in env
PR-URL: https://github.com/nodejs/node/pull/35025
Reviewed-By: David Carlier <devnexen@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/node.h')
-rw-r--r-- | src/node.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/node.h b/src/node.h index 1631fff20cf..b96b3ea1e49 100644 --- a/src/node.h +++ b/src/node.h @@ -442,6 +442,11 @@ enum Flags : uint64_t { kNoGlobalSearchPaths = 1 << 7, // Do not export browser globals like setTimeout, console, etc. kNoBrowserGlobals = 1 << 8, + // Controls whether or not the Environment should call V8Inspector::create(). + // This control is needed by embedders who may not want to initialize the V8 + // inspector in situations where one has already been created, + // e.g. Blink's in Chromium. + kNoCreateInspector = 1 << 9 }; } // namespace EnvironmentFlags |