mirror of
https://github.com/nodejs/node.git
synced 2025-05-12 10:57:28 +00:00

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>
9 lines
294 B
JavaScript
9 lines
294 B
JavaScript
// Flags: --icu-data-dir=test/fixtures/empty/
|
|
'use strict';
|
|
require('../common');
|
|
const assert = require('assert');
|
|
const config = process.binding('config');
|
|
|
|
assert.deepStrictEqual(Intl.NumberFormat.supportedLocalesOf('en'), []);
|
|
assert.strictEqual(config.icuDataDir, 'test/fixtures/empty/');
|