Index: src/messages.cc |
diff --git a/src/messages.cc b/src/messages.cc |
index c70463d63bf5a45f9342c0cd33e7f15d07fb4f9a..a0793c2dfd7376dd3a066c9e320f31e2894c2272 100644 |
--- a/src/messages.cc |
+++ b/src/messages.cc |
@@ -126,7 +126,7 @@ void MessageHandler::ReportMessage(Isolate* isolate, |
v8::NeanderObject listener(JSObject::cast(global_listeners.get(i))); |
Handle<Foreign> callback_obj(Foreign::cast(listener.get(0))); |
v8::MessageCallback callback = |
- FUNCTION_CAST<v8::MessageCallback>(callback_obj->address()); |
+ FUNCTION_CAST<v8::MessageCallback>(callback_obj->foreign_address()); |
Handle<Object> callback_data(listener.get(1)); |
{ |
// Do not allow exceptions to propagate. |