Changeset 187680 in webkit for trunk/Source/JavaScriptCore/parser/Parser.cpp
- Timestamp:
- Jul 31, 2015, 2:05:19 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/parser/Parser.cpp
r187515 r187680 1822 1822 TreeClassExpression classExpr = parseClass(context, FunctionNeedsName, info); 1823 1823 failIfFalse(classExpr, "Failed to parse class"); 1824 // FIXME: This should be like `let`, not `var`. 1825 declareVariable(info.className); 1824 1825 DeclarationResultMask declarationResult = declareVariable(info.className, DeclarationType::LetDeclaration); 1826 if (declarationResult & DeclarationResult::InvalidDuplicateDeclaration) 1827 internalFailWithMessage(false, "Cannot declare a class twice: '", info.className->impl(), "'"); 1826 1828 1827 1829 JSTextPosition classEnd = lastTokenEndPosition();
Note:
See TracChangeset
for help on using the changeset viewer.