mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 20:59:16 +00:00
LibJS: Stop propagating small OOM errors from Intl.NumberFormat
Note this also does the same for Intl.PluralRules. The only OOM errors propagated from Intl.PluralRules were from Intl.NumberFormat.
This commit is contained in:
parent
30a812b77b
commit
b3694653a7
Notes:
sideshowbarker
2024-07-16 22:26:05 +09:00
Author: https://github.com/trflynn89
Commit: b3694653a7
Pull-request: https://github.com/SerenityOS/serenity/pull/20854
16 changed files with 153 additions and 164 deletions
|
@ -44,7 +44,7 @@ ThrowCompletionOr<Value> NumberFormatFunction::call()
|
|||
auto mathematical_value = TRY(to_intl_mathematical_value(vm, value));
|
||||
|
||||
// 5. Return ? FormatNumeric(nf, x).
|
||||
auto formatted = TRY(format_numeric(vm, m_number_format, move(mathematical_value)));
|
||||
auto formatted = format_numeric(vm, m_number_format, move(mathematical_value));
|
||||
return PrimitiveString::create(vm, move(formatted));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue