1
Fork 0
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:
Linus Groh 2022-02-04 19:29:15 +00:00
parent c48f695b90
commit e087cd574e
6 changed files with 36 additions and 32 deletions

View file

@ -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));
}
}