Index: src/messages.cc |
diff --git a/src/messages.cc b/src/messages.cc |
index 84ce4c3eb55187eb40daa00e25e35f05da55814f..85a11286ee9ed5bf7d67a91c7fb8765951ee6761 100644 |
--- a/src/messages.cc |
+++ b/src/messages.cc |
@@ -112,7 +112,7 @@ void MessageHandler::ReportMessage(Isolate* isolate, MessageLocation* loc, |
Handle<Object> callback_data(listener.get(1), isolate); |
{ |
// Do not allow exceptions to propagate. |
- v8::TryCatch try_catch; |
+ v8::TryCatch try_catch(reinterpret_cast<v8::Isolate*>(isolate)); |
callback(api_message_obj, callback_data->IsUndefined() |
? api_exception_obj |
: v8::Utils::ToLocal(callback_data)); |