summaryrefslogtreecommitdiff
path: root/test/parallel/test-intl.js
diff options
context:
space:
mode:
authorJames M Snell <jasnell@gmail.com>2016-10-23 10:00:41 -0700
committerJames M Snell <jasnell@gmail.com>2016-10-25 08:12:02 -0700
commitd7e4ae1eb01c618404452f9b351efc4710b1c127 (patch)
treece7a09d7890a4dfca0ef78af2a6935414b192a27 /test/parallel/test-intl.js
parent1e4fafcb1a07900080afeb52917515c15268b60b (diff)
downloadandroid-node-v8-d7e4ae1eb01c618404452f9b351efc4710b1c127.tar.gz
android-node-v8-d7e4ae1eb01c618404452f9b351efc4710b1c127.tar.bz2
android-node-v8-d7e4ae1eb01c618404452f9b351efc4710b1c127.zip
test: add common.hasIntl
PR-URL: https://github.com/nodejs/node/pull/9246 Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Roman Reiss <me@silverwind.io> Reviewed-By: Johan Bergström <bugs@bergstroem.nu> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'test/parallel/test-intl.js')
-rw-r--r--test/parallel/test-intl.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/test/parallel/test-intl.js b/test/parallel/test-intl.js
index 3b56defe47..938099f2e3 100644
--- a/test/parallel/test-intl.js
+++ b/test/parallel/test-intl.js
@@ -8,9 +8,6 @@ if (enablei18n === undefined) {
enablei18n = 0;
}
-// is the Intl object present?
-const haveIntl = (global.Intl !== undefined);
-
// Returns true if no specific locale ids were configured (i.e. "all")
// Else, returns true if loc is in the configured list
// Else, returns false
@@ -19,7 +16,7 @@ function haveLocale(loc) {
return locs.indexOf(loc) !== -1;
}
-if (!haveIntl) {
+if (!common.hasIntl) {
const erMsg =
'"Intl" object is NOT present but v8_enable_i18n_support is ' +
enablei18n;