Skip to content

Commit b420209

Browse files
AquiTCDMylesBorins
authored andcommitted
test: use common.hasIntl instead of typeof Intl
PR-URL: #17311 Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Jon Moss <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 078b4a6 commit b420209

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/parallel/test-intl-v8BreakIterator.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const common = require('../common');
33
const assert = require('assert');
44
const vm = require('vm');
55

6-
if (typeof Intl === 'undefined')
6+
if (!common.hasIntl)
77
common.skip('missing Intl');
88

99
assert(!('v8BreakIterator' in Intl));

0 commit comments

Comments
 (0)