mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-01 12:07:14 +02:00
LibJS: Move Intl.DateTimeFormat creation to CreateDateTimeFormat AO
This is an editorial change in the ECMA-402 spec. See: https://github.com/tc39/ecma402/commit/b6ed64b https://github.com/tc39/ecma402/commit/6e3b70d This moves Intl.DateTimeFormat creation to InitializeDateTimeFormat and renames that AO to CreateDateTimeFormat.
This commit is contained in:
committed by
Linus Groh
parent
ea774111e8
commit
3a4cdf77ba
Notes:
sideshowbarker
2024-07-16 21:42:29 +09:00
Author: https://github.com/trflynn89 Commit: https://github.com/SerenityOS/serenity/commit/3a4cdf77ba Pull-request: https://github.com/SerenityOS/serenity/pull/20136 Reviewed-by: https://github.com/linusg ✅
@@ -6,6 +6,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <LibJS/Runtime/Intl/DateTimeFormat.h>
|
||||
#include <LibJS/Runtime/NativeFunction.h>
|
||||
|
||||
namespace JS::Intl {
|
||||
@@ -28,6 +29,6 @@ private:
|
||||
JS_DECLARE_NATIVE_FUNCTION(supported_locales_of);
|
||||
};
|
||||
|
||||
ThrowCompletionOr<DateTimeFormat*> initialize_date_time_format(VM&, DateTimeFormat&, Value locales_value, Value options_value);
|
||||
ThrowCompletionOr<NonnullGCPtr<DateTimeFormat>> create_date_time_format(VM&, FunctionObject& new_target, Value locales_value, Value options_value, OptionRequired, OptionDefaults);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user