From 7556d59fe7c05ac2b80063006dee49e7cc2434fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bargull?= Date: Mon, 30 Mar 2020 04:55:13 -0700 Subject: [PATCH] Update list of Intl service constructors Add RelativeTimeFormat, ListFormat, and DisplayNames to the list of Intl service constructors. --- harness/testIntl.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/harness/testIntl.js b/harness/testIntl.js index 589367d3bd..6cab1742b1 100644 --- a/harness/testIntl.js +++ b/harness/testIntl.js @@ -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; }