Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index 1cf5d529119ce42fa92a1f65767ccba8153fb6fc..4833c313ad54701305438af7b88de3d76d1d9a48 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -3702,8 +3702,7 @@ Local<Object> v8::Object::FindInstanceInPrototypeChain( |
return Local<Object>(); |
} |
} |
- return Utils::ToLocal( |
- i::handle(i::JSObject::cast(iter.GetCurrent()), isolate)); |
+ return Utils::ToLocal(i::handle(iter.GetCurrent<i::JSObject>(), isolate)); |
} |