Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgengjiawen <technicalcute@gmail.com>2019-08-10 10:18:41 +0300
committerDaniel Bevenius <daniel.bevenius@gmail.com>2019-08-13 05:26:26 +0300
commita49b20d3245dd2a4d890e28582f3c013c07c3136 (patch)
tree6d0aed2e5b1c48c23fcfe8072696f8666de7e918 /src/inspector_agent.cc
parent382f84a7f87296fe81e247051ccfc830d71fabca (diff)
inspector: use const for contextGroupId
PR-URL: https://github.com/nodejs/node/pull/29076 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
Diffstat (limited to 'src/inspector_agent.cc')
-rw-r--r--src/inspector_agent.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/inspector_agent.cc b/src/inspector_agent.cc
index f4c3dbfdfdc..1f4c42d62ca 100644
--- a/src/inspector_agent.cc
+++ b/src/inspector_agent.cc
@@ -232,7 +232,7 @@ class ChannelImpl final : public v8_inspector::V8Inspector::Channel,
bool prevent_shutdown)
: delegate_(std::move(delegate)), prevent_shutdown_(prevent_shutdown),
retaining_context_(false) {
- session_ = inspector->connect(1, this, StringView());
+ session_ = inspector->connect(CONTEXT_GROUP_ID, this, StringView());
node_dispatcher_ = std::make_unique<protocol::UberDispatcher>(this);
tracing_agent_ =
std::make_unique<protocol::TracingAgent>(env, main_thread_);