From a49b20d3245dd2a4d890e28582f3c013c07c3136 Mon Sep 17 00:00:00 2001 From: gengjiawen Date: Sat, 10 Aug 2019 15:18:41 +0800 Subject: [PATCH] inspector: use const for contextGroupId PR-URL: https://github.com/nodejs/node/pull/29076 Reviewed-By: Ben Noordhuis Reviewed-By: Rich Trott Reviewed-By: Daniel Bevenius --- src/inspector_agent.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/inspector_agent.cc b/src/inspector_agent.cc index f4c3dbfdfdc0fc..1f4c42d62ca3e8 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(this); tracing_agent_ = std::make_unique(env, main_thread_);