mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-03 16:16:43 +00:00
LibJS: Fix "set it to" language to be more explicit
This is an editorial change in the Temporal spec.
See: de58241
This commit is contained in:
parent
4722045e28
commit
17da627b4c
Notes:
sideshowbarker
2024-07-17 17:36:24 +09:00
Author: https://github.com/linusg
Commit: 17da627b4c
Pull-request: https://github.com/SerenityOS/serenity/pull/12990
Reviewed-by: https://github.com/IdanHo ✅
Reviewed-by: https://github.com/Lubrsi
9 changed files with 16 additions and 16 deletions
|
@ -54,7 +54,7 @@ ThrowCompletionOr<PlainDate*> create_temporal_date(GlobalObject& global_object,
|
|||
if (!iso_date_time_within_limits(global_object, iso_year, iso_month, iso_day, 12, 0, 0, 0, 0, 0))
|
||||
return vm.throw_completion<RangeError>(global_object, ErrorType::TemporalInvalidPlainDate);
|
||||
|
||||
// 7. If newTarget is not present, set it to %Temporal.PlainDate%.
|
||||
// 7. If newTarget is not present, set newTarget to %Temporal.PlainDate%.
|
||||
if (!new_target)
|
||||
new_target = global_object.temporal_plain_date_constructor();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue