We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aff8b87 commit f282e4aCopy full SHA for f282e4a
test/parallel/test-intl.js
@@ -104,6 +104,12 @@ if (!common.hasIntl) {
104
const numberFormat = new Intl.NumberFormat(['en']).format(12345.67890);
105
assert.strictEqual(numberFormat, '12,345.679');
106
}
107
+ // If list is specified and doesn't contain 'en-US' then return.
108
+ if (process.config.variables.icu_locales && !haveLocale('en-US')) {
109
+ common.printSkipMessage('detailed Intl tests because American English is ' +
110
+ 'not listed as supported.');
111
+ return;
112
+ }
113
// Number format resolved options
114
{
115
const numberFormat = new Intl.NumberFormat('en-US', { style: 'percent' });
0 commit comments