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>
This commit is contained in:
Aqui Tsuchida 2017-11-26 17:24:18 +09:00 committed by James M Snell
parent 53d87b370b
commit 6a99224c24

View File

@ -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));