mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
LibJS: Use FlyString in PropertyKey instead of DeprecatedFlyString
This required dealing with *substantial* fallout.
This commit is contained in:
committed by
Andreas Kling
parent
fc744e3f3f
commit
46a5710238
Notes:
github-actions[bot]
2025-03-24 22:28:26 +00:00
Author: https://github.com/awesomekling Commit: https://github.com/LadybirdBrowser/ladybird/commit/46a57102387 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4067 Reviewed-by: https://github.com/trflynn89
@@ -15,14 +15,14 @@ namespace JS {
|
||||
String ParserError::to_string() const
|
||||
{
|
||||
if (!position.has_value())
|
||||
return MUST(String::from_byte_string(message));
|
||||
return message;
|
||||
return MUST(String::formatted("{} (line: {}, column: {})", message, position.value().line, position.value().column));
|
||||
}
|
||||
|
||||
ByteString ParserError::to_byte_string() const
|
||||
{
|
||||
if (!position.has_value())
|
||||
return message;
|
||||
return message.to_byte_string();
|
||||
return ByteString::formatted("{} (line: {}, column: {})", message, position.value().line, position.value().column);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user