Changeset 173120 in webkit for trunk/Source/JavaScriptCore/runtime/LiteralParser.cpp
- Timestamp:
- Aug 29, 2014, 2:33:30 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/LiteralParser.cpp
r163844 r173120 282 282 } 283 283 } 284 m_lexErrorMessage = String::format("Unrecognized token '%c'", *m_ptr) .impl();284 m_lexErrorMessage = String::format("Unrecognized token '%c'", *m_ptr); 285 285 return TokError; 286 286 } … … 407 407 for (int i = 1; i < 5; i++) { 408 408 if (!isASCIIHexDigit(m_ptr[i])) { 409 m_lexErrorMessage = String::format("\"\\%s\" is not a valid unicode escape", String(m_ptr, 5).ascii().data()) .impl();409 m_lexErrorMessage = String::format("\"\\%s\" is not a valid unicode escape", String(m_ptr, 5).ascii().data()); 410 410 return TokError; 411 411 } … … 421 421 break; 422 422 } 423 m_lexErrorMessage = String::format("Invalid escape character %c", *m_ptr) .impl();423 m_lexErrorMessage = String::format("Invalid escape character %c", *m_ptr); 424 424 return TokError; 425 425 } … … 712 712 const LiteralParserToken<CharType>& token = m_lexer.currentToken(); 713 713 if (token.stringIs8Bit) 714 m_parseErrorMessage = String::format("Unexpected identifier \"%s\"", String(m_lexer.currentToken().stringToken8, m_lexer.currentToken().stringLength).ascii().data()) .impl();714 m_parseErrorMessage = String::format("Unexpected identifier \"%s\"", String(m_lexer.currentToken().stringToken8, m_lexer.currentToken().stringLength).ascii().data()); 715 715 else 716 m_parseErrorMessage = String::format("Unexpected identifier \"%s\"", String(m_lexer.currentToken().stringToken16, m_lexer.currentToken().stringLength).ascii().data()) .impl();716 m_parseErrorMessage = String::format("Unexpected identifier \"%s\"", String(m_lexer.currentToken().stringToken16, m_lexer.currentToken().stringLength).ascii().data()); 717 717 return JSValue(); 718 718 }
Note:
See TracChangeset
for help on using the changeset viewer.