Index: src/isolate.cc |
diff --git a/src/isolate.cc b/src/isolate.cc |
index 847d3b5ee21bbb3116a69150531abc8a3f57878b..8f2b9b217d24311e7bc876cd55c4ce622e21b9a0 100644 |
--- a/src/isolate.cc |
+++ b/src/isolate.cc |
@@ -1174,7 +1174,7 @@ bool Isolate::IsErrorObject(Handle<Object> obj) { |
js_builtins_object()->GetPropertyNoExceptionThrown(error_key); |
for (Object* prototype = *obj; !prototype->IsNull(); |
- prototype = prototype->GetPrototype()) { |
+ prototype = prototype->GetPrototype(this)) { |
if (!prototype->IsJSObject()) return false; |
if (JSObject::cast(prototype)->map()->constructor() == error_constructor) { |
return true; |