From b420209fc637c7fa2eddd7b7dbf4c76dd09400fa 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 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/17311 Reviewed-By: Joyee Cheung Reviewed-By: Michaƫl Zasso Reviewed-By: Luigi Pinca Reviewed-By: Gireesh Punathil Reviewed-By: Jon Moss Reviewed-By: James M Snell --- 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));