Index: src/bootstrapper.cc |
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc |
index 59f966722045ab2b3f72aa13ed04b0423f638fcf..0790c9a1755c7349c67195a9fb9296cb166c4a26 100644 |
--- a/src/bootstrapper.cc |
+++ b/src/bootstrapper.cc |
@@ -785,7 +785,7 @@ Handle<JSGlobalProxy> Genesis::CreateNewGlobals( |
name, code, prototype, JS_GLOBAL_OBJECT_TYPE, JSGlobalObject::kSize); |
#ifdef DEBUG |
LookupIterator it(prototype, factory()->constructor_string(), |
- LookupIterator::OWN_PROPERTY); |
+ LookupIterator::OWN_SKIP_INTERCEPTOR); |
Handle<Object> value = JSReceiver::GetProperty(&it).ToHandleChecked(); |
DCHECK(it.IsFound()); |
DCHECK_EQ(*isolate()->object_function(), *value); |
@@ -2485,7 +2485,8 @@ void Genesis::TransferNamedProperties(Handle<JSObject> from, |
} |
case CALLBACKS: { |
Handle<Name> key(descs->GetKey(i)); |
- LookupIterator it(to, key, LookupIterator::OWN_PROPERTY); |
+ LookupIterator it(to, key, LookupIterator::OWN_SKIP_INTERCEPTOR); |
+ CHECK_NE(LookupIterator::ACCESS_CHECK, it.state()); |
// If the property is already there we skip it |
if (it.IsFound() && it.HasProperty()) continue; |
HandleScope inner(isolate()); |
@@ -2513,7 +2514,8 @@ void Genesis::TransferNamedProperties(Handle<JSObject> from, |
DCHECK(raw_key->IsName()); |
// If the property is already there we skip it. |
Handle<Name> key(Name::cast(raw_key)); |
- LookupIterator it(to, key, LookupIterator::OWN_PROPERTY); |
+ LookupIterator it(to, key, LookupIterator::OWN_SKIP_INTERCEPTOR); |
+ CHECK_NE(LookupIterator::ACCESS_CHECK, it.state()); |
if (it.IsFound() && it.HasProperty()) continue; |
// Set the property. |
Handle<Object> value = Handle<Object>(properties->ValueAt(i), |