mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 06:47:34 +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:
parent
890b4d7980
commit
b41e7b7e86
7 changed files with 14 additions and 14 deletions
|
@ -389,7 +389,7 @@ ThrowCompletionOr<Value> calendar_era(VM& vm, Object& calendar, Object& date_lik
|
|||
|
||||
// 3. If result is not undefined, set result to ? ToString(result).
|
||||
if (!result.is_undefined())
|
||||
result = PrimitiveString::create(vm, TRY(result.to_deprecated_string(vm)));
|
||||
result = PrimitiveString::create(vm, TRY(result.to_string(vm)));
|
||||
|
||||
// 4. Return result.
|
||||
return result;
|
||||
|
@ -609,10 +609,10 @@ ThrowCompletionOr<bool> calendar_equals(VM& vm, Object& one, Object& two)
|
|||
return true;
|
||||
|
||||
// 2. Let calendarOne be ? ToString(one).
|
||||
auto calendar_one = TRY(Value(&one).to_deprecated_string(vm));
|
||||
auto calendar_one = TRY(Value(&one).to_string(vm));
|
||||
|
||||
// 3. Let calendarTwo be ? ToString(two).
|
||||
auto calendar_two = TRY(Value(&two).to_deprecated_string(vm));
|
||||
auto calendar_two = TRY(Value(&two).to_string(vm));
|
||||
|
||||
// 4. If calendarOne is calendarTwo, return true.
|
||||
if (calendar_one == calendar_two)
|
||||
|
@ -630,10 +630,10 @@ ThrowCompletionOr<Object*> consolidate_calendars(VM& vm, Object& one, Object& tw
|
|||
return &two;
|
||||
|
||||
// 2. Let calendarOne be ? ToString(one).
|
||||
auto calendar_one = TRY(Value(&one).to_deprecated_string(vm));
|
||||
auto calendar_one = TRY(Value(&one).to_string(vm));
|
||||
|
||||
// 3. Let calendarTwo be ? ToString(two).
|
||||
auto calendar_two = TRY(Value(&two).to_deprecated_string(vm));
|
||||
auto calendar_two = TRY(Value(&two).to_string(vm));
|
||||
|
||||
// 4. If calendarOne is calendarTwo, return two.
|
||||
if (calendar_one == calendar_two)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue