Index: src/messages.cc |
diff --git a/src/messages.cc b/src/messages.cc |
index 23fd4fd5d866f1aecef5cc6c7a0eb16d647230b9..e4a1ff7a1cf7b60310c1f1485e8bfdc0c3111526 100644 |
--- a/src/messages.cc |
+++ b/src/messages.cc |
@@ -155,7 +155,10 @@ Handle<String> MessageHandler::GetMessage(Handle<Object> data) { |
JSFunction::cast( |
Isolate::Current()->js_builtins_object()-> |
GetPropertyNoExceptionThrown(*fmt_str))); |
- Handle<Object> argv[] = { data }; |
+ ASSERT(data->IsJSMessageObject()); |
Sven Panne
2012/11/09 07:55:07
No need for this ASSERT, all cast methods do this
|
+ Handle<JSMessageObject> message = Handle<JSMessageObject>::cast(data); |
+ Handle<Object> argv[] = { Handle<Object>(message->type()), |
+ Handle<Object>(message->arguments()) }; |
bool caught_exception; |
Handle<Object> result = |