mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-28 10:37:17 +02:00
LibJS: Read properties from the Intl.DateTimeFormat options object once
This is a normative change in the ECMA-402 spec. See: https://github.com/tc39/ecma402/commit/02bd03a This is observable just due to reading the properties one less time. It would have been possible for e.g. the property values to change between those invocations.
This commit is contained in:
committed by
Linus Groh
parent
3a4cdf77ba
commit
8b23bbf58e
Notes:
sideshowbarker
2024-07-16 23:57:20 +09:00
Author: https://github.com/trflynn89 Commit: https://github.com/SerenityOS/serenity/commit/8b23bbf58e Pull-request: https://github.com/SerenityOS/serenity/pull/20136 Reviewed-by: https://github.com/linusg ✅
@@ -13,7 +13,7 @@
|
||||
|
||||
namespace JS::Intl {
|
||||
|
||||
// 11.5.5 DateTime Format Functions, https://tc39.es/ecma402/#sec-datetime-format-functions
|
||||
// 11.5.4 DateTime Format Functions, https://tc39.es/ecma402/#sec-datetime-format-functions
|
||||
NonnullGCPtr<DateTimeFormatFunction> DateTimeFormatFunction::create(Realm& realm, DateTimeFormat& date_time_format)
|
||||
{
|
||||
return realm.heap().allocate<DateTimeFormatFunction>(realm, date_time_format, realm.intrinsics().function_prototype()).release_allocated_value_but_fixme_should_propagate_errors();
|
||||
|
||||
Reference in New Issue
Block a user