Index: src/isolate.cc |
diff --git a/src/isolate.cc b/src/isolate.cc |
index 97ae0b98e121c3520ed4ecfcf7f0c1c3b47a5a5b..f9e87bfaba6e92d393701edc1f4037e55c4f8937 100644 |
--- a/src/isolate.cc |
+++ b/src/isolate.cc |
@@ -1454,7 +1454,7 @@ |
MessageLocation* location) { |
Handle<JSArray> stack_trace_object; |
if (capture_stack_trace_for_uncaught_exceptions_) { |
- if (exception->IsJSError()) { |
+ if (Object::IsErrorObject(this, exception)) { |
// 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 |