Skip to content

Commit 6a99224

Browse files
AquiTCDjasnell
authored andcommitted
test: use common.hasIntl instead of typeof Intl
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>
1 parent 53d87b3 commit 6a99224

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)