[whatwg/url] Make property accessors enumerable (#301)

I'd like to see `URL` objects' main data properties all become enumerable, i.e. `origin`, `protocol`, `username`, `password`, `host`, `hostname`, `port`, `pathname`, `search`, `hash`, and maybe `href` and `searchParams`.

Without the enumerable nature, it makes these `URL` objects extremely frustrating to work with as they do not fit well semantically in normal object models due to their lack of owned properties, e.g. when comparing 2 `URL` objects:
 - https://github.com/JamesMGreene/chai-deep-match/issues/2
 - https://github.com/lodash/lodash/issues/3121
 - https://github.com/debitoor/chai-subset/issues/60


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/url/issues/301

Received on Thursday, 27 April 2017 19:58:12 UTC