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 authored and Myles Borins committed 2017-12-12 03:27:34 -05:00
1 parent 078b4a625b
commit b420209fc6
1 file changed
+1 -1
+1 -1
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));