From 4417f99432b4505241fe9bad826155bc9ea10a8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= Date: Tue, 9 Feb 2016 17:35:36 +0100 Subject: [PATCH] src: replace usage of deprecated SetMessageHandler PR-URL: https://github.com/nodejs/node/pull/5159 Reviewed-By: Ben Noordhuis --- src/debug-agent.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/debug-agent.cc b/src/debug-agent.cc index 93d2ce71f11a38..e46bd71b0536ca 100644 --- a/src/debug-agent.cc +++ b/src/debug-agent.cc @@ -120,7 +120,7 @@ bool Agent::Start(int port, bool wait) { void Agent::Enable() { - v8::Debug::SetMessageHandler(MessageHandler); + v8::Debug::SetMessageHandler(parent_env()->isolate(), MessageHandler); // Assign environment to the debugger's context // NOTE: The debugger context is created after `SetMessageHandler()` call @@ -135,7 +135,7 @@ void Agent::Stop() { return; } - v8::Debug::SetMessageHandler(nullptr); + v8::Debug::SetMessageHandler(parent_env()->isolate(), nullptr); // Send empty message to terminate things EnqueueMessage(new AgentMessage(nullptr, 0));