mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-04 16:46:08 +00:00
LibJS: Implement the Intl.PluralRules constructor
This commit is contained in:
parent
0087804d10
commit
348059bffd
Notes:
sideshowbarker
2024-07-17 20:05:32 +09:00
Author: https://github.com/trflynn89
Commit: 348059bffd
Pull-request: https://github.com/SerenityOS/serenity/pull/12188
Reviewed-by: https://github.com/linusg ✅
4 changed files with 221 additions and 1 deletions
|
@ -8,6 +8,7 @@
|
|||
|
||||
#include <AK/String.h>
|
||||
#include <AK/StringView.h>
|
||||
#include <LibJS/Runtime/Completion.h>
|
||||
#include <LibJS/Runtime/Intl/NumberFormat.h>
|
||||
#include <LibJS/Runtime/Object.h>
|
||||
|
||||
|
@ -33,4 +34,6 @@ private:
|
|||
Type m_type { Type::Cardinal }; // [[Type]]
|
||||
};
|
||||
|
||||
ThrowCompletionOr<PluralRules*> initialize_plural_rules(GlobalObject& global_object, PluralRules& plural_rules, Value locales_value, Value options_value);
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue