1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 13:28:11 +00:00

LibJS: Remove DeprecatedString usage from Token

This commit is contained in:
Evan Smal 2023-01-26 08:38:09 -05:00 committed by Linus Groh
parent 93674e4383
commit cfa6b4d815
3 changed files with 9 additions and 9 deletions

View file

@ -4133,7 +4133,7 @@ Token Parser::consume_and_validate_numeric_literal()
void Parser::expected(char const* what)
{
auto message = m_state.current_token.message();
auto message = m_state.current_token.message().to_deprecated_string();
if (message.is_empty())
message = DeprecatedString::formatted("Unexpected token {}. Expected {}", m_state.current_token.name(), what);
syntax_error(message);