Re: [heycam/webidl] Give Location an immutable prototype object (#606)

HTML covers it for the `Location` object, not for the `Location` prototype object, which is created by IDL. (I don't think we have any prose definitions for prototype objects in the web platform.)

At least, if I understand it correctly. I was initially also somewhat confused by that, but I think I got it right.

As for the layering violation, I thought this was a one-off for `Location` which kinda made me think this would be okay as introducing extended attributes for one-offs also seems wrong (someone might use it for the wrong reasons). Global objects are already handled and I don't think `EventTarget` should have this. In particular, Chrome does not throw for `new EventTarget().__proto__ = {};` and I don't think it should, so I'm not sure how that extended attribute works.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/heycam/webidl/pull/606#issuecomment-453087403

Received on Thursday, 10 January 2019 12:59:03 UTC