Tom Van Cutsem:
> invariants that are enforced:
…
> - unconfigurable [[Class]] (Object or Function, respectively)

Web IDL requires [[Class]] to take on values other than these two, for
example it should be "HTMLDivElement" for an HTMLDivElement object.  I
have a feeling that the web requires this, as opposed to just having a
custom toString function.

http://google.com/codesearch?q=Object.prototype.toString.call+lang:javascript
brings up some libraries that use Object.prototype.toString on DOM
objects.

Is it palatable to have proxies control [[Class]] or is there another
way we can help proxies over this hurdle?

-- 
Cameron McCormack ≝ http://mcc.id.au/
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to