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:
parent
93674e4383
commit
cfa6b4d815
3 changed files with 9 additions and 9 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue