1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 05:27:46 +00:00

LibJS: Replace to_deprecated_string() with to_string() in Temporal

Turns out all of these can already be replaced with no further changes!
This commit is contained in:
Linus Groh 2023-01-28 22:54:44 +00:00
parent 890b4d7980
commit b41e7b7e86
7 changed files with 14 additions and 14 deletions

View file

@ -340,7 +340,7 @@ ThrowCompletionOr<String> temporal_zoned_date_time_to_string(VM& vm, ZonedDateTi
// 13. Else,
else {
// a. Let timeZoneID be ? ToString(timeZone).
auto time_zone_id = TRY(Value(&time_zone).to_deprecated_string(vm));
auto time_zone_id = TRY(Value(&time_zone).to_string(vm));
// b. If showTimeZone is "critical", let flag be "!"; else let flag be the empty String.
auto flag = show_time_zone == "critical"sv ? "!"sv : ""sv;