Changeset 172380 in webkit for trunk/Source/JavaScriptCore/parser/Lexer.cpp
- Timestamp:
- Aug 10, 2014, 1:07:34 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/parser/Lexer.cpp
r170079 r172380 1665 1665 1666 1666 record8('0'); 1667 if (strictMode && isASCIIDigit(m_current)) { 1668 m_lexErrorMessage = "Decimal integer literals with a leading zero are forbidden in strict mode"; 1669 token = INVALID_OCTAL_NUMBER_ERRORTOK; 1670 goto returnError; 1671 } 1667 1672 if (isASCIIOctalDigit(m_current)) { 1668 1673 if (parseOctal(tokenData->doubleValue)) { 1669 if (strictMode) {1670 m_lexErrorMessage = "Octal escapes are forbidden in strict mode";1671 token = INVALID_OCTAL_NUMBER_ERRORTOK;1672 goto returnError;1673 }1674 1674 token = NUMBER; 1675 1675 }
Note:
See TracChangeset
for help on using the changeset viewer.