File tree Expand file tree Collapse file tree 4 files changed +9
-4
lines changed Expand file tree Collapse file tree 4 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,7 @@ option:
5151| ` String.prototype.toLocale*Case() ` | partial (not locale-aware) | full | full | full |
5252| [ ` Number.prototype.toLocaleString() ` ] [ ] | partial (not locale-aware) | partial/full (depends on OS) | partial (English-only) | full |
5353| ` 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 |
5455| [ WHATWG URL Parser] [ ] | partial (no IDN support) | full | full | full |
5556| [ ` require('buffer').transcode() ` ] [ ] | none (function does not exist) | full | full | full |
5657| [ REPL] [ ] | partial (inaccurate line editing) | full | full | full |
@@ -195,6 +196,7 @@ to be helpful:
195196[ ICU ] : http://site.icu-project.org/
196197[ REPL ] : repl.md#repl_repl
197198[ Test262 ] : https://github.com/tc39/test262/tree/HEAD/test/intl402
199+ [ Legacy URL parser ] : url.md#url_legacy_url_api
198200[ WHATWG URL parser ] : url.md#url_the_whatwg_url_api
199201[ `--icu-data-dir` ] : cli.md#cli_icu_data_dir_file
200202[ `Date.prototype.toLocaleString()` ] : https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleString
Original file line number Diff line number Diff line change @@ -4,6 +4,6 @@ if (internalBinding('config').hasIntl) {
44 const { toASCII, toUnicode } = internalBinding ( 'icu' ) ;
55 module . exports = { toASCII, toUnicode } ;
66} 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 } ;
99}
Original file line number Diff line number Diff line change @@ -151,7 +151,7 @@ if (!common.isMainThread) {
151151if ( common . hasIntl ) {
152152 expectedModules . add ( 'Internal Binding icu' ) ;
153153} else {
154- expectedModules . add ( 'NativeModule punycode ' ) ;
154+ expectedModules . add ( 'NativeModule url ' ) ;
155155}
156156
157157if ( process . features . inspector ) {
Original file line number Diff line number Diff line change 11'use strict' ;
2- require ( '../common' ) ;
2+ const common = require ( '../common' ) ;
33const assert = require ( 'assert' ) ;
44const url = require ( 'url' ) ;
55
6+ if ( ! common . hasIntl )
7+ common . skip ( 'missing Intl' ) ;
8+
69// Formatting tests to verify that it'll format slightly wonky content to a
710// valid URL.
811const formatTests = {
You can’t perform that action at this time.
0 commit comments