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