Re: [whatwg/url] Make property accessors into owned properties, or at least enumerable (#301)

> I also disagree with that notion of JavaScript's object model; it sounds like you're making inferences based on deficient tools ("typical object comparison functions") that are meant for dealing with "records" (things created via object literals or JSON or similar), and fail on true instances of classes.

Yes, your point is well taken, and I can agree that this is the distinction between what I've been incorrectly calling "un-semantic" here.

I would definitely love for there to be an easy way to convert a `URL` object (and other such WebAPI objects, I suppose, like `Map`) to a "record" object for easier comparisons and potentially serializations without so much custom code.

-- 
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#issuecomment-297997296

Received on Friday, 28 April 2017 13:27:38 UTC