mirror of
https://github.com/tc39/test262.git
synced 2025-07-24 06:25:30 +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"];
|
var constructors = ["Collator", "NumberFormat", "DateTimeFormat"];
|
||||||
|
|
||||||
// Optionally supported Intl constructors.
|
// 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") {
|
if (typeof Intl[constructor] === "function") {
|
||||||
constructors[constructors.length] = constructor;
|
constructors[constructors.length] = constructor;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user