Index: src/runtime/runtime-scopes.cc |
diff --git a/src/runtime/runtime-scopes.cc b/src/runtime/runtime-scopes.cc |
index 5deedca6214544ce5b0fc80082b2c5fbfeb41185..a09dee15f357596a21af7a1bbd309500c96310ca 100644 |
--- a/src/runtime/runtime-scopes.cc |
+++ b/src/runtime/runtime-scopes.cc |
@@ -44,7 +44,8 @@ static Object* DeclareGlobals(Isolate* isolate, Handle<JSGlobalObject> global, |
} |
// Do the lookup own properties only, see ES5 erratum. |
- LookupIterator it(global, name, LookupIterator::HIDDEN_SKIP_INTERCEPTOR); |
+ LookupIterator it(global, name, global, |
+ LookupIterator::HIDDEN_SKIP_INTERCEPTOR); |
Maybe<PropertyAttributes> maybe = JSReceiver::GetPropertyAttributes(&it); |
if (!maybe.IsJust()) return isolate->heap()->exception(); |
@@ -182,7 +183,8 @@ RUNTIME_FUNCTION(Runtime_InitializeConstGlobal) { |
Handle<JSGlobalObject> global = isolate->global_object(); |
// Lookup the property as own on the global object. |
- LookupIterator it(global, name, LookupIterator::HIDDEN_SKIP_INTERCEPTOR); |
+ LookupIterator it(global, name, global, |
+ LookupIterator::HIDDEN_SKIP_INTERCEPTOR); |
Maybe<PropertyAttributes> maybe = JSReceiver::GetPropertyAttributes(&it); |
DCHECK(maybe.IsJust()); |
PropertyAttributes old_attributes = maybe.FromJust(); |
@@ -394,7 +396,8 @@ RUNTIME_FUNCTION(Runtime_InitializeLegacyConstLookupSlot) { |
// code can run in between that modifies the declared property. |
DCHECK(holder->IsJSGlobalObject() || holder->IsJSContextExtensionObject()); |
- LookupIterator it(holder, name, LookupIterator::HIDDEN_SKIP_INTERCEPTOR); |
+ LookupIterator it(holder, name, Handle<JSReceiver>::cast(holder), |
+ LookupIterator::HIDDEN_SKIP_INTERCEPTOR); |
Maybe<PropertyAttributes> maybe = JSReceiver::GetPropertyAttributes(&it); |
if (!maybe.IsJust()) return isolate->heap()->exception(); |
PropertyAttributes old_attributes = maybe.FromJust(); |
@@ -708,7 +711,7 @@ static Object* FindNameClash(Handle<ScopeInfo> scope_info, |
} |
if (IsLexicalVariableMode(mode)) { |
- LookupIterator it(global_object, name, |
+ LookupIterator it(global_object, name, global_object, |
LookupIterator::HIDDEN_SKIP_INTERCEPTOR); |
Maybe<PropertyAttributes> maybe = JSReceiver::GetPropertyAttributes(&it); |
if (!maybe.IsJust()) return isolate->heap()->exception(); |