mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 21:27:34 +00:00
LibJS+Everywhere: Rename Value::to_string to to_deprecated_string
This commit is contained in:
parent
8f5bdce8e7
commit
afeb7273cc
68 changed files with 193 additions and 193 deletions
|
@ -238,7 +238,7 @@ ThrowCompletionOr<DeprecatedString> calendar_month_code(VM& vm, Object& calendar
|
|||
return vm.throw_completion<RangeError>(ErrorType::TemporalInvalidCalendarFunctionResult, vm.names.monthCode.as_string(), vm.names.undefined.as_string());
|
||||
|
||||
// 3. Return ? ToString(result).
|
||||
return result.to_string(vm);
|
||||
return result.to_deprecated_string(vm);
|
||||
}
|
||||
|
||||
// 12.2.11 CalendarDay ( calendar, dateLike ), https://tc39.es/proposal-temporal/#sec-temporal-calendarday
|
||||
|
@ -387,7 +387,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_string(vm)));
|
||||
result = PrimitiveString::create(vm, TRY(result.to_deprecated_string(vm)));
|
||||
|
||||
// 4. Return result.
|
||||
return result;
|
||||
|
@ -461,7 +461,7 @@ ThrowCompletionOr<Object*> to_temporal_calendar(VM& vm, Value temporal_calendar_
|
|||
}
|
||||
|
||||
// 2. Let identifier be ? ToString(temporalCalendarLike).
|
||||
auto identifier = TRY(temporal_calendar_like.to_string(vm));
|
||||
auto identifier = TRY(temporal_calendar_like.to_deprecated_string(vm));
|
||||
|
||||
// 3. Set identifier to ? ParseTemporalCalendarString(identifier).
|
||||
identifier = TRY(parse_temporal_calendar_string(vm, identifier));
|
||||
|
@ -573,7 +573,7 @@ ThrowCompletionOr<DeprecatedString> maybe_format_calendar_annotation(VM& vm, Obj
|
|||
VERIFY(calendar_object);
|
||||
|
||||
// 3. Let calendarID be ? ToString(calendarObject).
|
||||
auto calendar_id = TRY(Value(calendar_object).to_string(vm));
|
||||
auto calendar_id = TRY(Value(calendar_object).to_deprecated_string(vm));
|
||||
|
||||
// 4. Return FormatCalendarAnnotation(calendarID, showCalendar).
|
||||
return format_calendar_annotation(calendar_id, show_calendar);
|
||||
|
@ -607,10 +607,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_string(vm));
|
||||
auto calendar_one = TRY(Value(&one).to_deprecated_string(vm));
|
||||
|
||||
// 3. Let calendarTwo be ? ToString(two).
|
||||
auto calendar_two = TRY(Value(&two).to_string(vm));
|
||||
auto calendar_two = TRY(Value(&two).to_deprecated_string(vm));
|
||||
|
||||
// 4. If calendarOne is calendarTwo, return true.
|
||||
if (calendar_one == calendar_two)
|
||||
|
@ -628,10 +628,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_string(vm));
|
||||
auto calendar_one = TRY(Value(&one).to_deprecated_string(vm));
|
||||
|
||||
// 3. Let calendarTwo be ? ToString(two).
|
||||
auto calendar_two = TRY(Value(&two).to_string(vm));
|
||||
auto calendar_two = TRY(Value(&two).to_deprecated_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