Index: src/debug-agent.cc |
diff --git a/src/debug-agent.cc b/src/debug-agent.cc |
index aad36086e945c2c5a88cf241b0b848011413e847..51823aaf24c41a7ae9e5681489399d61149ca0ed 100644 |
--- a/src/debug-agent.cc |
+++ b/src/debug-agent.cc |
@@ -38,7 +38,8 @@ namespace internal { |
// Public V8 debugger API message handler function. This function just delegates |
// to the debugger agent through it's data parameter. |
void DebuggerAgentMessageHandler(const v8::Debug::Message& message) { |
- DebuggerAgent* agent = Isolate::Current()->debugger_agent_instance(); |
+ Isolate* isolate = reinterpret_cast<Isolate*>(message.GetIsolate()); |
+ DebuggerAgent* agent = isolate->debugger_agent_instance(); |
ASSERT(agent != NULL); |
agent->DebuggerMessage(message); |
} |