mirror of
https://github.com/nodejs/node.git
synced 2026-11-30 11:45:32 -05:00
test: make test-intl-no-icu-data more robust
In V8 5.6, String#toLocaleUpperCase can work even when no ICU data is loaded. Use another method to check the --icu-data-dir option pointing to an empty directory. PR-URL: https://github.com/nodejs/node/pull/10992 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
This commit is contained in:
1 parent
7c0c7baff3
commit
ca48071919
1 file changed
+1
-2
@@ -4,6 +4,5 @@ require('../common');
|
||||
const assert = require('assert');
|
||||
const config = process.binding('config');
|
||||
|
||||
// No-op when ICU case mappings are unavailable.
|
||||
assert.strictEqual('ç'.toLocaleUpperCase('el'), 'ç');
|
||||
assert.deepStrictEqual(Intl.NumberFormat.supportedLocalesOf('en'), []);
|
||||
assert.strictEqual(config.icuDataDir, 'test/fixtures/empty/');
|
||||
Reference in new issue
Block a user