Changeset 102931 in webkit
- Timestamp:
- Dec 15, 2011 5:45:56 AM (12 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r102917 r102931 1 2011-12-15 Andy Wingo <wingo@igalia.com> 2 3 Minor refactor to Parser::parseTryStatement 4 https://bugs.webkit.org/show_bug.cgi?id=74507 5 6 Reviewed by Geoffrey Garen. 7 8 * parser/Parser.cpp (JSC::Parser::parseTryStatement): Use the 9 Parser's declareVariable instead of going directly to the scope. 10 This will facilitate future checks related to harmony block 11 scoping. 12 1 13 2011-12-15 Andy Wingo <wingo@igalia.com> 2 14 -
trunk/Source/JavaScriptCore/parser/Parser.cpp
r100391 r102931 624 624 next(); 625 625 AutoPopScopeRef catchScope(this, pushScope()); 626 failIfFalseIfStrictWithNameAndMessage( catchScope->declareVariable(ident), "Cannot declare a variable named", ident->impl(), "in strict mode");626 failIfFalseIfStrictWithNameAndMessage(declareVariable(ident), "Cannot declare a variable named", ident->impl(), "in strict mode"); 627 627 catchScope->preventNewDecls(); 628 628 consumeOrFail(CLOSEPAREN);
Note: See TracChangeset
for help on using the changeset viewer.