Index: src/messages.cc |
diff --git a/src/messages.cc b/src/messages.cc |
index 0077d0309f0794b38f7c1ea77f5e11aa46d20f02..12ad4205d5a65920a30df59c856dc1305c398474 100644 |
--- a/src/messages.cc |
+++ b/src/messages.cc |
@@ -107,7 +107,7 @@ void MessageHandler::ReportMessage(Isolate* isolate, |
// We pass the exception object into the message handler callback though. |
Object* exception_object = isolate->heap()->undefined_value(); |
if (isolate->has_pending_exception()) { |
- isolate->pending_exception()->ToObject(&exception_object); |
+ exception_object = isolate->pending_exception(); |
} |
Handle<Object> exception_handle(exception_object, isolate); |