Re: [whatwg/url] Convenience method to return an Object (#143)

The problem with using objects as maps is, JavaScript objects have special keys. It would be too easy for an attacker to write something like &__prototype__=null or &then=0 to force a certain behaviour. And JS objects will not stop getting more magical properties, because they are not maps already, it won't hurt to add another shiny feature with another magical property.

-- 
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/143#issuecomment-240391971

Received on Wednesday, 17 August 2016 12:07:07 UTC