Changeset 172717 in webkit for trunk/Source/JavaScriptCore/parser/Parser.cpp
- Timestamp:
- Aug 18, 2014, 12:11:41 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/parser/Parser.cpp
r172381 r172717 459 459 if (match(IDENT)) { 460 460 JSTextPosition varStart = tokenStartPosition(); 461 JSTokenLocation varStartLocation(tokenLocation()); 461 462 identStart = varStart; 462 463 const Identifier* name = m_token.m_data.ident; … … 476 477 477 478 node = context.createAssignResolve(location, *name, initializer, varStart, varDivot, lastTokenEndPosition()); 478 } 479 } else 480 node = context.createEmptyVarExpression(varStartLocation, *name); 479 481 } else { 480 482 lastIdent = 0; … … 491 493 } 492 494 493 if (hasInitializer) { 494 if (!varDecls) 495 varDecls = node; 496 else 497 varDecls = context.combineCommaNodes(location, varDecls, node); 498 } 495 if (!varDecls) 496 varDecls = node; 497 else 498 varDecls = context.combineCommaNodes(location, varDecls, node); 499 499 } while (match(COMMA)); 500 500 if (lastIdent)
Note:
See TracChangeset
for help on using the changeset viewer.