mirror of
https://github.com/tc39/test262.git
synced 2025-04-08 19:35:28 +02:00
Update list of Intl service constructors
Add RelativeTimeFormat, ListFormat, and DisplayNames to the list of Intl service constructors.
This commit is contained in:
parent
62b8fce389
commit
7556d59fe7
@ -39,7 +39,8 @@ function testWithIntlConstructors(f) {
|
||||
var constructors = ["Collator", "NumberFormat", "DateTimeFormat"];
|
||||
|
||||
// Optionally supported Intl constructors.
|
||||
["PluralRules"].forEach(function(constructor) {
|
||||
// NB: Intl.Locale isn't an Intl service constructor!
|
||||
["PluralRules", "RelativeTimeFormat", "ListFormat", "DisplayNames"].forEach(function(constructor) {
|
||||
if (typeof Intl[constructor] === "function") {
|
||||
constructors[constructors.length] = constructor;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user