From 22c1f1eac7f2fa44c3a173d7c498ba17133418cb Mon Sep 17 00:00:00 2001 From: Aqui Tsuchida Date: Sun, 26 Nov 2017 17:24:18 +0900 Subject: [PATCH] test: use common.hasIntl instead of typeof Intl --- test/parallel/test-intl-v8BreakIterator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-intl-v8BreakIterator.js b/test/parallel/test-intl-v8BreakIterator.js index 4f501e6ef6db28..257d6b2a769083 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));