mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 08:18:12 +00:00
LibJS: Rename variables to 'calendarLike' in a couple of places
This is an editorial change in the Temporal spec.
See: 9af2d35
This commit is contained in:
parent
c48f695b90
commit
e087cd574e
6 changed files with 36 additions and 32 deletions
|
@ -60,13 +60,13 @@ ThrowCompletionOr<Object*> CalendarConstructor::construct(FunctionObject& new_ta
|
|||
return TRY(create_temporal_calendar(global_object, identifier, &new_target));
|
||||
}
|
||||
|
||||
// 12.3.2 Temporal.Calendar.from ( item ), https://tc39.es/proposal-temporal/#sec-temporal.calendar.from
|
||||
// 12.3.2 Temporal.Calendar.from ( calendarLike ), https://tc39.es/proposal-temporal/#sec-temporal.calendar.from
|
||||
JS_DEFINE_NATIVE_FUNCTION(CalendarConstructor::from)
|
||||
{
|
||||
auto item = vm.argument(0);
|
||||
auto calendar_like = vm.argument(0);
|
||||
|
||||
// 1. Return ? ToTemporalCalendar(item).
|
||||
return TRY(to_temporal_calendar(global_object, item));
|
||||
// 1. Return ? ToTemporalCalendar(calendarLike).
|
||||
return TRY(to_temporal_calendar(global_object, calendar_like));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue