mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-02 04:27:12 +02:00
LibJS: Fix typo in Intl.NumberFormat GetNumberOption parameter name
This is an editorial change in the ECMA-402 spec. See: https://github.com/tc39/ecma402/commit/759e671
This commit is contained in:
Notes:
github-actions[bot]
2026-02-06 17:21:11 +00:00
Author: https://github.com/trflynn89 Commit: https://github.com/LadybirdBrowser/ladybird/commit/d8f8bbada87 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/7789
@@ -170,7 +170,7 @@ ThrowCompletionOr<GC::Ref<Object>> NumberFormatConstructor::construct(FunctionOb
|
||||
// 16.1.2 SetNumberFormatDigitOptions ( intlObj, options, mnfdDefault, mxfdDefault, notation ), https://tc39.es/ecma402/#sec-setnfdigitoptions
|
||||
ThrowCompletionOr<void> set_number_format_digit_options(VM& vm, NumberFormatBase& intl_object, Object const& options, int default_min_fraction_digits, int default_max_fraction_digits, Unicode::Notation notation)
|
||||
{
|
||||
// 1. Let mnid be ? GetNumberOption(options, "minimumIntegerDigits,", 1, 21, 1).
|
||||
// 1. Let mnid be ? GetNumberOption(options, "minimumIntegerDigits", 1, 21, 1).
|
||||
auto min_integer_digits = TRY(get_number_option(vm, options, vm.names.minimumIntegerDigits, 1, 21, 1));
|
||||
|
||||
// 2. Let mnfd be ? Get(options, "minimumFractionDigits").
|
||||
|
||||
Reference in New Issue
Block a user