mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 03:55:24 +00:00
LibJS: Remove errant period from ZonedDateTime.prototype.toPlainDate
This is an editorial change in the Temporal proposal. See: https://github.com/tc39/proposal-temporal/commit/5e25315
This commit is contained in:
parent
fe4995b69a
commit
25c361bb96
Notes:
github-actions[bot]
2024-12-05 21:07:32 +00:00
Author: https://github.com/trflynn89 Commit: https://github.com/LadybirdBrowser/ladybird/commit/25c361bb96c Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2790 Reviewed-by: https://github.com/gmta ✅
1 changed files with 1 additions and 1 deletions
|
@ -970,7 +970,7 @@ JS_DEFINE_NATIVE_FUNCTION(ZonedDateTimePrototype::to_plain_date)
|
|||
// 3. Let isoDateTime be GetISODateTimeFor(zonedDateTime.[[TimeZone]], zonedDateTime.[[EpochNanoseconds]]).
|
||||
auto iso_date_time = get_iso_date_time_for(zoned_date_time->time_zone(), zoned_date_time->epoch_nanoseconds()->big_integer());
|
||||
|
||||
// 4. Return ! CreateTemporalDate(isoDateTime.[[ISODate]], zonedDateTime.[[Calendar]].).
|
||||
// 4. Return ! CreateTemporalDate(isoDateTime.[[ISODate]], zonedDateTime.[[Calendar]]).
|
||||
return MUST(create_temporal_date(vm, iso_date_time.iso_date, zoned_date_time->calendar()));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue