summaryrefslogtreecommitdiff
path: root/test/parallel/test-intl-v8BreakIterator.js
diff options
context:
space:
mode:
authorAqui Tsuchida <aqui.tcd+dev@gmail.com>2017-11-26 17:24:18 +0900
committerJames M Snell <jasnell@gmail.com>2017-11-26 08:55:05 -0800
commit6a99224c2439c9faf1b21a4357354d86c85f9b0f (patch)
tree00d05c53bf1c4e1585498de3dfc8cdb7f55b5200 /test/parallel/test-intl-v8BreakIterator.js
parent53d87b370b14ae6ff7a6daca360bef8680e07d88 (diff)
downloadandroid-node-v8-6a99224c2439c9faf1b21a4357354d86c85f9b0f.tar.gz
android-node-v8-6a99224c2439c9faf1b21a4357354d86c85f9b0f.tar.bz2
android-node-v8-6a99224c2439c9faf1b21a4357354d86c85f9b0f.zip
test: use common.hasIntl instead of typeof Intl
PR-URL: https://github.com/nodejs/node/pull/17311 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Michaƫl Zasso <targos@protonmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Jon Moss <me@jonathanmoss.me> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'test/parallel/test-intl-v8BreakIterator.js')
-rw-r--r--test/parallel/test-intl-v8BreakIterator.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-intl-v8BreakIterator.js b/test/parallel/test-intl-v8BreakIterator.js
index 4f501e6ef6..257d6b2a76 100644
--- a/test/parallel/test-intl-v8BreakIterator.js
+++ b/test/parallel/test-intl-v8BreakIterator.js
@@ -3,7 +3,7 @@ const common = require('../common');
const assert = require('assert');
const vm = require('vm');
-if (typeof Intl === 'undefined')
+if (!common.hasIntl)
common.skip('missing Intl');
assert(!('v8BreakIterator' in Intl));