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:
Timothy Flynn
2026-02-06 09:58:48 -05:00
committed by Tim Flynn
parent 5bb084aa3a
commit d8f8bbada8
Notes: github-actions[bot] 2026-02-06 17:21:11 +00:00

View File

@@ -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").