1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:48:11 +00:00
serenity/Userland/Libraries/LibJS
Timothy Flynn e74e8381d5 LibJS: Allow "approximately" results to differ in plural form
This is a normative change in the Intl.NumberFormat V3 spec. See:
08f599b

Note that this didn't seem to actually affect our implementation. The
Unicode spec states:

https://www.unicode.org/reports/tr35/tr35-53/tr35-numbers.html#Plural_Ranges
"If there is no value for a <start,end> pair, the default result is end"

Therefore, our implementation did not have the behavior noted by the
issue this normative change addressed:

    const pr = new Intl.PluralRules("en-US");
    pr.selectRange(1, 1); // Is "other", should be "one"

Our implementation already returned "one" here because there is no such
<start=one, end=one> value in the CLDR for en-US. Thus, we already
returned the end value of "one".
2023-01-30 14:10:07 -05:00
..
Bytecode AK: Remove StringBuilder::build() in favor of to_deprecated_string() 2023-01-27 20:38:49 +00:00
Contrib/Test262 LibJS+Everywhere: Propagate Cell::initialize errors from Heap::allocate 2023-01-29 00:02:45 +00:00
Heap LibJS+Everywhere: Propagate Cell::initialize errors from Heap::allocate 2023-01-29 00:02:45 +00:00
Runtime LibJS: Allow "approximately" results to differ in plural form 2023-01-30 14:10:07 -05:00
Tests LibJS: Allow "approximately" results to differ in plural form 2023-01-30 14:10:07 -05:00
AST.cpp AK: Remove StringBuilder::build() in favor of to_deprecated_string() 2023-01-27 20:38:49 +00:00
AST.h LibJS: Add using declaration support in for and for of loops 2023-01-23 09:56:50 +00:00
CMakeLists.txt LibJS: Add DisposableStack{, Prototype, Constructor} 2023-01-23 09:56:50 +00:00
Console.cpp LibJS: Port get_difference_settings() to String 2023-01-26 20:20:54 +00:00
Console.h Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
CyclicModule.cpp LibJS: Convert NativeFunction::create() to NonnullGCPtr 2022-12-14 09:59:45 +00:00
CyclicModule.h LibJS+LibWeb: Make CyclicModule.h not include AST.h 2022-11-23 16:05:59 +00:00
Forward.h LibJS: Add DisposableStack{, Prototype, Constructor} 2023-01-23 09:56:50 +00:00
Interpreter.cpp WebContent+LibWeb+LibJS: Simplify injection of JS console globals 2022-12-09 18:51:03 +00:00
Interpreter.h AK+Everywhere: Rename FlyString to DeprecatedFlyString 2023-01-09 23:00:24 +00:00
Lexer.cpp LibJS: Remove some usage of DeprecatedString usage from Lexer 2023-01-26 20:25:25 +00:00
Lexer.h LibJS: Remove some usage of DeprecatedString usage from Lexer 2023-01-26 20:25:25 +00:00
MarkupGenerator.cpp LibJS: Convert MarkupGenerator to the new String 2022-12-07 09:58:38 +00:00
MarkupGenerator.h LibJS: Convert MarkupGenerator to the new String 2022-12-07 09:58:38 +00:00
Module.cpp LibJS+Everywhere: Propagate Cell::initialize errors from Heap::allocate 2023-01-29 00:02:45 +00:00
Module.h AK+Everywhere: Rename FlyString to DeprecatedFlyString 2023-01-09 23:00:24 +00:00
Parser.cpp LibJS: Remove some usage of DeprecatedString usage from Lexer 2023-01-26 20:25:25 +00:00
Parser.h LibJS: Add using declaration support in for and for of loops 2023-01-23 09:56:50 +00:00
ParserError.cpp AK: Remove StringBuilder::build() in favor of to_deprecated_string() 2023-01-27 20:38:49 +00:00
ParserError.h Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
Print.cpp AK+Everywhere: Rename FlyString to DeprecatedFlyString 2023-01-09 23:00:24 +00:00
Print.h AK: Move Stream and SeekableStream from LibCore 2023-01-29 19:16:44 -07:00
SafeFunction.h Everywhere: Stop shoving things into ::std and mentioning them as such 2022-12-14 11:44:32 +01:00
Script.cpp LibJS: Convert Heap::allocate{,_without_realm}() to NonnullGCPtr 2022-12-15 06:56:37 -05:00
Script.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
SourceCode.cpp LibJS: Remove DeprecatedString usage from SourceCode 2023-01-26 20:25:25 +00:00
SourceCode.h LibJS: Remove DeprecatedString usage from SourceCode 2023-01-26 20:25:25 +00:00
SourceRange.h LibJS: Remove DeprecatedString usage from SourceCode 2023-01-26 20:25:25 +00:00
SourceTextModule.cpp LibJS: Add using declaration support, RAII like operation in js 2023-01-23 09:56:50 +00:00
SourceTextModule.h AK+Everywhere: Rename FlyString to DeprecatedFlyString 2023-01-09 23:00:24 +00:00
SyntaxHighlighter.cpp LibJS: Remove a bunch of gratuitous JS namespace qualifiers 2022-04-03 15:19:33 +01:00
SyntaxHighlighter.h LibSyntax: Teach each highlighter about it's comment syntax 2022-11-27 18:28:43 -07:00
SyntheticModule.cpp LibJS: Add an initialize binding hint to all initialize_binding methods 2023-01-23 09:56:50 +00:00
SyntheticModule.h AK+Everywhere: Rename FlyString to DeprecatedFlyString 2023-01-09 23:00:24 +00:00
Token.cpp AK: Remove StringBuilder::build() in favor of to_deprecated_string() 2023-01-27 20:38:49 +00:00
Token.h LibJS: Remove DeprecatedString usage from Token 2023-01-26 20:25:25 +00:00