Changeset 106512 in webkit for trunk/Source/JavaScriptCore/parser/Parser.cpp
- Timestamp:
- Feb 1, 2012, 4:08:00 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/parser/Parser.cpp
r106297 r106512 604 604 TreeStatement tryBlock = 0; 605 605 const Identifier* ident = &m_globalData->propertyNames->nullIdentifier; 606 bool catchHasEval = false;607 606 TreeStatement catchBlock = 0; 608 607 TreeStatement finallyBlock = 0; … … 627 626 consumeOrFail(CLOSEPAREN); 628 627 matchOrFail(OPENBRACE); 629 int initialEvalCount = context.evalCount();630 628 catchBlock = parseBlockStatement(context); 631 629 failIfFalseWithMessage(catchBlock, "'try' must have a catch or finally block"); 632 catchHasEval = initialEvalCount != context.evalCount();633 630 failIfFalse(popScope(catchScope, TreeBuilder::NeedsFreeVariableInfo)); 634 631 } … … 641 638 } 642 639 failIfFalse(catchBlock || finallyBlock); 643 return context.createTryStatement(m_lexer->lastLineNumber(), tryBlock, ident, catch HasEval, catchBlock, finallyBlock, firstLine, lastLine);640 return context.createTryStatement(m_lexer->lastLineNumber(), tryBlock, ident, catchBlock, finallyBlock, firstLine, lastLine); 644 641 } 645 642
Note:
See TracChangeset
for help on using the changeset viewer.