LibJS: Remove some single-use Intl.DurationFormat variables

This is an editorial change in the ECMA-402 spec. See:
4c139f1
da498c2
ed5c716
This commit is contained in:
Timothy Flynn 2025-03-03 10:15:53 -05:00 committed by Tim Flynn
commit 532f156f4a
Notes: github-actions[bot] 2025-03-04 12:37:07 +00:00
2 changed files with 63 additions and 83 deletions

View file

@ -70,7 +70,7 @@ ThrowCompletionOr<GC::Ref<Object>> DurationFormatConstructor::construct(Function
// 7. If numberingSystem is not undefined, then
if (!numbering_system.is_undefined()) {
// a. If numberingSystem does not match the Unicode Locale Identifier type nonterminal, throw a RangeError exception.
// a. If numberingSystem cannot be matched by the type Unicode locale nonterminal, throw a RangeError exception.
if (!Unicode::is_type_identifier(numbering_system.as_string().utf8_string_view()))
return vm.throw_completion<RangeError>(ErrorType::OptionIsNotValidValue, numbering_system, "numberingSystem"sv);
}