mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 06:07:44 +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
9 changed files with 16 additions and 16 deletions
|
@ -65,7 +65,7 @@ String default_time_zone()
|
|||
// 11.6.1 CreateTemporalTimeZone ( identifier [ , newTarget ] ), https://tc39.es/proposal-temporal/#sec-temporal-createtemporaltimezone
|
||||
ThrowCompletionOr<TimeZone*> create_temporal_time_zone(GlobalObject& global_object, String const& identifier, FunctionObject const* new_target)
|
||||
{
|
||||
// 1. If newTarget is not present, set it to %Temporal.TimeZone%.
|
||||
// 1. If newTarget is not present, set newTarget to %Temporal.TimeZone%.
|
||||
if (!new_target)
|
||||
new_target = global_object.temporal_time_zone_constructor();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue