Skip to content

Commit

Permalink
src: replace usage of deprecated SetMessageHandler
Browse files Browse the repository at this point in the history
PR-URL: #5159
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
  • Loading branch information
targos authored and Ali Sheikh committed Mar 4, 2016
1 parent 8894f27 commit 4417f99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/debug-agent.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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));
Expand Down

0 comments on commit 4417f99

Please sign in to comment.