This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
http://heycam.github.io/webidl/#es-platform-objects [[ [[Enumerable]]: true ]] Can we make toString, toJSON and valueOf for [Unforgeable] be not enumerable? It seems annoying to have them enumerated for e.g. Location.
It's technically quite easy to do. It's not clear to me how it ties in to the current ES thinking on enumerability. Allen? The idea here is that we have some objects we want to lock down so we're defining non-configurable, non-writable toString/toJSON/valueOf on them (with some sort of canonical value).
I have fixed this in https://github.com/annevk/html-cross-origin-objects/issues/19 which should at some point soon make its way into the HTML standard. If we do want these enumerable after all please let me know. Closing this since we'll remove Unforgeable for interfaces from IDL.