Index: src/isolate.cc |
diff --git a/src/isolate.cc b/src/isolate.cc |
index c5e2640544d0f352d3eea38b8e004812d6414c7a..cff41b1c79e369f46d933b67883f32fbc308d61b 100644 |
--- a/src/isolate.cc |
+++ b/src/isolate.cc |
@@ -1454,7 +1454,7 @@ Handle<JSMessageObject> Isolate::CreateMessage(Handle<Object> exception, |
MessageLocation* location) { |
Handle<JSArray> stack_trace_object; |
if (capture_stack_trace_for_uncaught_exceptions_) { |
- if (Object::IsErrorObject(this, exception)) { |
+ if (exception->IsJSError()) { |
// We fetch the stack trace that corresponds to this error object. |
// If the lookup fails, the exception is probably not a valid Error |
// object. In that case, we fall through and capture the stack trace |