Skip to content

Commit

Permalink
test: use common.hasIntl instead of typeof Intl
Browse files Browse the repository at this point in the history
PR-URL: #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>
  • Loading branch information
AquiTCD authored and jasnell committed Nov 26, 2017
1 parent 53d87b3 commit 6a99224
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/parallel/test-intl-v8BreakIterator.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 6a99224

Please sign in to comment.