mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-13 03:29:49 +00:00
LibJS: Mark the NumberFormat parameter of FormatNumericToString as const
Not critical, but in subsequent commits this will be invoked from a constant context.
This commit is contained in:
parent
8aeacccd82
commit
2982aa0373
Notes:
sideshowbarker
2024-07-17 09:37:31 +09:00
Author: https://github.com/trflynn89
Commit: 2982aa0373
Pull-request: https://github.com/SerenityOS/serenity/pull/14512
Reviewed-by: https://github.com/IdanHo
Reviewed-by: https://github.com/alimpfard
Reviewed-by: https://github.com/linusg
2 changed files with 2 additions and 2 deletions
|
@ -344,7 +344,7 @@ int currency_digits(StringView currency)
|
|||
}
|
||||
|
||||
// 15.5.3 FormatNumericToString ( intlObject, x ), https://tc39.es/ecma402/#sec-formatnumberstring
|
||||
FormatResult format_numeric_to_string(GlobalObject& global_object, NumberFormatBase& intl_object, Value number)
|
||||
FormatResult format_numeric_to_string(GlobalObject& global_object, NumberFormatBase const& intl_object, Value number)
|
||||
{
|
||||
// 1. If ℝ(x) < 0 or x is -0𝔽, let isNegative be true; else let isNegative be false.
|
||||
bool is_negative = is_less_than(number, 0) || number.is_negative_zero();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue