Changeset 181121 in webkit for trunk/Source/JavaScriptCore/parser/Parser.cpp
- Timestamp:
- Mar 5, 2015, 5:16:25 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/parser/Parser.cpp
r180813 r181121 1870 1870 template <class TreeBuilder> TreeExpression Parser<LexerType>::parseBinaryExpression(TreeBuilder& context) 1871 1871 { 1872 1873 1872 int operandStackDepth = 0; 1874 1873 int operatorStackDepth = 0; … … 1929 1928 else 1930 1929 nextExpectIdentifier(LexerFlagsIgnoreReservedWords | TreeBuilder::DontBuildKeywords); 1931 1930 1932 1931 if (match(COLON)) { 1933 1932 next(); … … 1937 1936 return context.createProperty(ident, node, PropertyNode::Constant, complete); 1938 1937 } 1938 1939 1939 failIfFalse(wasIdent, "Expected an identifier as property name"); 1940 1941 if (match(COMMA) || match(CLOSEBRACE)) { 1942 JSTextPosition start = tokenStartPosition(); 1943 JSTokenLocation location(tokenLocation()); 1944 currentScope()->useVariable(ident, m_vm->propertyNames->eval == *ident); 1945 TreeExpression node = context.createResolve(location, ident, start); 1946 return context.createProperty(ident, node, PropertyNode::Constant, complete); 1947 } 1948 1940 1949 PropertyNode::Type type; 1941 1950 if (*ident == m_vm->propertyNames->get)
Note:
See TracChangeset
for help on using the changeset viewer.