File tree 5 files changed +14
-5
lines changed
5 files changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,7 @@ option:
51
51
| ` String.prototype.toLocale*Case() ` | partial (not locale-aware) | full | full | full |
52
52
| [ ` Number.prototype.toLocaleString() ` ] [ ] | partial (not locale-aware) | partial/full (depends on OS) | partial (English-only) | full |
53
53
| ` Date.prototype.toLocale*String() ` | partial (not locale-aware) | partial/full (depends on OS) | partial (English-only) | full |
54
+ | [ Legacy URL Parser] [ ] | partial (no IDN support) | full | full | full |
54
55
| [ WHATWG URL Parser] [ ] | partial (no IDN support) | full | full | full |
55
56
| [ ` require('buffer').transcode() ` ] [ ] | none (function does not exist) | full | full | full |
56
57
| [ REPL] [ ] | partial (inaccurate line editing) | full | full | full |
@@ -193,6 +194,7 @@ to be helpful:
193
194
[ ECMA-262 ] : https://tc39.github.io/ecma262/
194
195
[ ECMA-402 ] : https://tc39.github.io/ecma402/
195
196
[ ICU ] : http://site.icu-project.org/
197
+ [ Legacy URL parser ] : url.md#url_legacy_url_api
196
198
[ REPL ] : repl.md#repl_repl
197
199
[ Test262 ] : https://github.com/tc39/test262/tree/HEAD/test/intl402
198
200
[ WHATWG URL parser ] : url.md#url_the_whatwg_url_api
Original file line number Diff line number Diff line change @@ -4,6 +4,6 @@ if (internalBinding('config').hasIntl) {
4
4
const { toASCII, toUnicode } = internalBinding ( 'icu' ) ;
5
5
module . exports = { toASCII, toUnicode } ;
6
6
} else {
7
- const { toASCII , toUnicode } = require ( 'punycode ' ) ;
8
- module . exports = { toASCII, toUnicode } ;
7
+ const { domainToASCII , domainToUnicode } = require ( 'internal/url ' ) ;
8
+ module . exports = { toASCII : domainToASCII , toUnicode : domainToUnicode } ;
9
9
}
Original file line number Diff line number Diff line change @@ -151,7 +151,7 @@ if (!common.isMainThread) {
151
151
if ( common . hasIntl ) {
152
152
expectedModules . add ( 'Internal Binding icu' ) ;
153
153
} else {
154
- expectedModules . add ( 'NativeModule punycode ' ) ;
154
+ expectedModules . add ( 'NativeModule url ' ) ;
155
155
}
156
156
157
157
if ( process . features . inspector ) {
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
- require ( '../common' ) ;
2
+ const common = require ( '../common' ) ;
3
3
const assert = require ( 'assert' ) ;
4
4
const url = require ( 'url' ) ;
5
5
6
+ if ( ! common . hasIntl )
7
+ common . skip ( 'missing Intl' ) ;
8
+
6
9
// Formatting tests to verify that it'll format slightly wonky content to a
7
10
// valid URL.
8
11
const formatTests = {
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
- require ( '../common' ) ;
2
+ const common = require ( '../common' ) ;
3
+
4
+ if ( ! common . hasIntl )
5
+ common . skip ( 'missing Intl' ) ;
6
+
3
7
const assert = require ( 'assert' ) ;
4
8
const inspect = require ( 'util' ) . inspect ;
5
9
You can’t perform that action at this time.
0 commit comments