Changeset 280825 in webkit for trunk/Source/JavaScriptCore/parser/Lexer.cpp
- Timestamp:
- Aug 9, 2021, 11:56:17 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/parser/Lexer.cpp
r278253 r280825 2658 2658 2659 2659 // Normally this would not be a lex error but dealing with surrogate pairs here is annoying and it's going to be an error anyway... 2660 if (UNLIKELY(!isLatin1(m_current) )) {2660 if (UNLIKELY(!isLatin1(m_current) && !isWhiteSpace(m_current) && !isLineTerminator(m_current))) { 2661 2661 m_buffer8.shrink(0); 2662 2662 JSTokenType token = INVALID_IDENTIFIER_UNICODE_ERRORTOK; … … 2673 2673 m_buffer8.shrink(0); 2674 2674 2675 // Since RegExp always ends with / , m_atLineStart always becomes false.2675 // Since RegExp always ends with / or flags (IdentifierPart), m_atLineStart always becomes false. 2676 2676 m_atLineStart = false; 2677 2677
Note:
See TracChangeset
for help on using the changeset viewer.