mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:37:35 +00:00
LibJS: Implement the Intl.RelativeTimeFormat constructor
This commit is contained in:
parent
79fdec85de
commit
a2e31ed736
4 changed files with 168 additions and 1 deletions
|
@ -9,6 +9,7 @@
|
|||
#include <AK/Array.h>
|
||||
#include <AK/String.h>
|
||||
#include <AK/StringView.h>
|
||||
#include <LibJS/Runtime/Completion.h>
|
||||
#include <LibJS/Runtime/Object.h>
|
||||
#include <LibUnicode/Locale.h>
|
||||
|
||||
|
@ -64,4 +65,6 @@ private:
|
|||
NumberFormat* m_number_format { nullptr }; // [[NumberFormat]]
|
||||
};
|
||||
|
||||
ThrowCompletionOr<RelativeTimeFormat*> initialize_relative_time_format(GlobalObject& global_object, RelativeTimeFormat& relative_time_format, Value locales_value, Value options_value);
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue