Index: src/factory.cc |
diff --git a/src/factory.cc b/src/factory.cc |
index 39e32806b7b90ec2909dcd891e4af7022df29cef..bb5e97a34e1f09c5260c47e64f73eba6badb1324 100644 |
--- a/src/factory.cc |
+++ b/src/factory.cc |
@@ -2169,8 +2169,7 @@ Handle<JSFunction> Factory::CreateApiFunction( |
if (prototype->IsTheHole()) { |
#ifdef DEBUG |
LookupIterator it(handle(JSObject::cast(result->prototype())), |
- constructor_string(), |
- LookupIterator::CHECK_OWN_REAL); |
+ constructor_string(), LookupIterator::CHECK_PROPERTY); |
MaybeHandle<Object> maybe_prop = Object::GetProperty(&it); |
DCHECK(it.IsFound()); |
DCHECK(maybe_prop.ToHandleChecked().is_identical_to(result)); |