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