mirror of https://github.com/tc39/test262.git
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…
Reference in New Issue