Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 31d3a22

Browse filesBrowse files
watildeItalo A. Casas
authored andcommitted
test: skip test-icu-transcode if Intl is not present
use common.hasIntl to make sure Intl object is present or not. PR-URL: #10707 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Italo A. Casas <me@italoacasas.com> Reviewed-By: Steven R Loomis <srloomis@us.ibm.com>
1 parent ddcd1a2 commit 31d3a22
Copy full SHA for 31d3a22

File tree

Expand file treeCollapse file tree

1 file changed

+6
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+6
-1
lines changed
Open diff view settings
Collapse file

‎test/parallel/test-icu-transcode.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-icu-transcode.js
+6-1Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
'use strict';
22

3-
require('../common');
3+
const common = require('../common');
44
const buffer = require('buffer');
55
const assert = require('assert');
66

7+
if (!common.hasIntl) {
8+
common.skip('icu punycode tests because ICU is not present.');
9+
return;
10+
}
11+
712
const orig = Buffer.from('tést €', 'utf8');
813

914
// Test Transcoding

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.