Index: src/isolate.cc |
diff --git a/src/isolate.cc b/src/isolate.cc |
index 80024cad277bacd3c111f2eb93bbc6bb75d8dcba..b8b3c2613279823610462c669c44e2310a0cedb3 100644 |
--- a/src/isolate.cc |
+++ b/src/isolate.cc |
@@ -1348,7 +1348,7 @@ bool Isolate::IsErrorObject(Handle<Object> obj) { |
for (PrototypeIterator iter(this, *obj, PrototypeIterator::START_AT_RECEIVER); |
!iter.IsAtEnd(); iter.Advance()) { |
if (iter.GetCurrent()->IsJSProxy()) return false; |
- if (JSObject::cast(iter.GetCurrent())->map()->GetConstructor() == |
+ if (iter.GetCurrent<JSObject>()->map()->GetConstructor() == |
*error_constructor) { |
return true; |
} |