From 0367b5c35ea0f98b323175a4aaa8e651af7a91e7 Mon Sep 17 00:00:00 2001 From: Shelley Vohr Date: Thu, 24 Feb 2022 00:32:30 +0100 Subject: src: allow preventing InitializeInspector in env PR-URL: https://github.com/nodejs/node/pull/35025 Reviewed-By: David Carlier Reviewed-By: Anna Henningsen Reviewed-By: Joyee Cheung Reviewed-By: Rich Trott Reviewed-By: James M Snell --- src/node.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/node.h') diff --git a/src/node.h b/src/node.h index 1631fff20c..b96b3ea1e4 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 -- cgit v1.2.1