Changeset 189371 in webkit for trunk/Source/JavaScriptCore/parser/Parser.h
- Timestamp:
- Sep 4, 2015, 12:48:54 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/parser/Parser.h
r189201 r189371 1341 1341 if (m_token.m_type == EOFTOK) 1342 1342 errorType = ParserError::SyntaxErrorRecoverable; 1343 else if (m_token.m_type & UnterminatedErrorTokenFlag) 1344 errorType = ParserError::SyntaxErrorUnterminatedLiteral; 1343 else if (m_token.m_type & UnterminatedErrorTokenFlag) { 1344 // Treat multiline capable unterminated literals as recoverable. 1345 if (m_token.m_type == UNTERMINATED_MULTILINE_COMMENT_ERRORTOK || m_token.m_type == UNTERMINATED_TEMPLATE_LITERAL_ERRORTOK) 1346 errorType = ParserError::SyntaxErrorRecoverable; 1347 else 1348 errorType = ParserError::SyntaxErrorUnterminatedLiteral; 1349 } 1345 1350 1346 1351 if (isEvalNode<ParsedNode>())
Note:
See TracChangeset
for help on using the changeset viewer.