mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-13 03:29:49 +00:00
LibJS: Change LargerOfTwoTemporalUnits AO to return a StringView
This commit is contained in:
parent
2cea4ad508
commit
1039159a6c
Notes:
sideshowbarker
2024-07-17 23:21:38 +09:00
Author: https://github.com/trflynn89
Commit: 1039159a6c
Pull-request: https://github.com/SerenityOS/serenity/pull/11136
7 changed files with 9 additions and 9 deletions
|
@ -992,7 +992,7 @@ ThrowCompletionOr<TemporalDuration> add_duration(GlobalObject& global_object, do
|
|||
auto* difference_options = Object::create(global_object, nullptr);
|
||||
|
||||
// k. Perform ! CreateDataPropertyOrThrow(differenceOptions, "largestUnit", dateLargestUnit).
|
||||
MUST(difference_options->create_data_property_or_throw(vm.names.largestUnit, js_string(vm, move(date_largest_unit))));
|
||||
MUST(difference_options->create_data_property_or_throw(vm.names.largestUnit, js_string(vm, date_largest_unit)));
|
||||
|
||||
// l. Let dateDifference be ? CalendarDateUntil(calendar, relativeTo, end, differenceOptions).
|
||||
auto* date_difference = TRY(calendar_date_until(global_object, calendar, &relative_to, end, *difference_options));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue