* **Version**: `v10.9.0`, `v11.0.0-pre` (master) * **Platform**: `Linux yoga 4.18.5-arch1-1-ARCH #1 SMP PREEMPT Fri Aug 24 12:48:58 UTC 2018 x86_64 GNU/Linux` * **Subsystem**: doc, url Documented ([link](https://github.com/nodejs/node/blob/master/doc/api/url.md#whatwg-api)): ```js const myURL = new URL('https://%CF%80.com/foo'); console.log(myURL.href); // Prints https://xn--1xa.com/foo console.log(myURL.origin); // Prints https://π.com ``` Actual behavior: ```console > const myURL = new URL('https://%CF%80.com/foo'); > console.log(myURL.href); https://xn--1xa.com/foo > console.log(myURL.origin); https://xn--1xa.com ``` The doc implies that `.origin` is not punicode-encoded in this scenario, but it in fact is punicode-encoded.