Changeset 222617 in webkit for trunk/Source/JavaScriptCore/runtime/ProgramExecutable.cpp
- Timestamp:
- Sep 28, 2017, 11:09:09 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/ProgramExecutable.cpp
r222473 r222617 131 131 for (auto& entry : lexicalDeclarations) { 132 132 // The ES6 spec says that RestrictedGlobalProperty can't be shadowed. 133 if (hasRestrictedGlobalProperty(exec, globalObject, entry.key.get())) 133 bool hasProperty = hasRestrictedGlobalProperty(exec, globalObject, entry.key.get()); 134 RETURN_IF_EXCEPTION(throwScope, throwScope.exception()); 135 if (hasProperty) 134 136 return createSyntaxError(exec, makeString("Can't create duplicate variable that shadows a global property: '", String(entry.key.get()), "'")); 135 137 136 boolhasProperty = globalLexicalEnvironment->hasProperty(exec, entry.key.get());138 hasProperty = globalLexicalEnvironment->hasProperty(exec, entry.key.get()); 137 139 RETURN_IF_EXCEPTION(throwScope, throwScope.exception()); 138 140 if (hasProperty) {
Note:
See TracChangeset
for help on using the changeset viewer.