mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 21:59:07 +00:00
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:
parent
1e462daa9b
commit
532f156f4a
Notes:
github-actions[bot]
2025-03-04 12:37:07 +00:00
Author: https://github.com/trflynn89
Commit: 532f156f4a
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3785
2 changed files with 63 additions and 83 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue