mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 21:29:06 +00:00
LibJS: Remove DeprecatedString usage from Token
This commit is contained in:
parent
93674e4383
commit
cfa6b4d815
Notes:
sideshowbarker
2024-07-17 01:10:51 +09:00
Author: https://github.com/evansmal
Commit: cfa6b4d815
Pull-request: https://github.com/SerenityOS/serenity/pull/17170
Reviewed-by: https://github.com/davidot ✅
Reviewed-by: https://github.com/linusg ✅
Reviewed-by: https://github.com/trflynn89
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