We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e2493a commit 9dd9760Copy full SHA for 9dd9760
doc/api/url.md
@@ -211,9 +211,7 @@ will be thrown.
211
212
* {string}
213
214
-Gets the read-only serialization of the URL's origin. Unicode characters that
215
-may be contained within the hostname will be encoded as-is without [Punycode][]
216
-encoding.
+Gets the read-only serialization of the URL's origin.
217
218
```js
219
const { URL } = require('url');
@@ -226,7 +224,7 @@ console.log(myURL.origin);
226
224
227
225
const idnURL = new URL('https://你好你好');
228
console.log(idnURL.origin);
229
-// Prints https://你好你好
+// Prints https://xn--6qqa088eba
230
231
console.log(idnURL.hostname);
232
// Prints xn--6qqa088eba
0 commit comments