| Index: src/runtime.cc
|
| diff --git a/src/runtime.cc b/src/runtime.cc
|
| index a344b28e0a030bcfc2410849ad8fa5a65b26153e..1772fb791305ce1ded0876a225b1cc7be0c02347 100644
|
| --- a/src/runtime.cc
|
| +++ b/src/runtime.cc
|
| @@ -1300,7 +1300,10 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_DeclareGlobals) {
|
| // value of the variable if the property is already there.
|
| // Do the lookup locally only, see ES5 errata.
|
| LookupResult lookup(isolate);
|
| - global->LocalLookup(*name, &lookup);
|
| + if (FLAG_es52_globals)
|
| + global->LocalLookup(*name, &lookup);
|
| + else
|
| + global->Lookup(*name, &lookup);
|
| if (lookup.IsProperty()) {
|
| // We found an existing property. Unless it was an interceptor
|
| // that claims the property is absent, skip this declaration.
|
|
|