Index: src/isolate.cc |
diff --git a/src/isolate.cc b/src/isolate.cc |
index 215296d735cc5b8b9698cfc67d9dc0cfa3bd7208..4a9e0376e770be489fc6840bb28e30f17572afe2 100644 |
--- a/src/isolate.cc |
+++ b/src/isolate.cc |
@@ -1049,8 +1049,8 @@ void Isolate::DoThrow(Object* exception, MessageLocation* location) { |
// Look up as own property. If the lookup fails, the exception is |
// probably not a valid Error object. In that case, we fall through |
// and capture the stack trace at this throw site. |
- LookupIterator lookup( |
- exception_handle, key, LookupIterator::CHECK_OWN_REAL); |
+ LookupIterator lookup(exception_handle, key, |
+ LookupIterator::CHECK_PROPERTY); |
Handle<Object> stack_trace_property; |
if (Object::GetProperty(&lookup).ToHandle(&stack_trace_property) && |
stack_trace_property->IsJSArray()) { |