[Harmony proxies] Thoughts on the almost-dead "receiver" argument

Brendan Eich brendan at mozilla.com
Sat Sep 24 13:49:44 PDT 2011


On Sep 23, 2011, at 11:18 AM, David Bruant wrote:

> My intuition is that WebIDL imposes getter/setters since it is the only
> way in ES5.1 to have a per-instance behavior while intuition would
> rather be to describe all properties as regular data properties which is
> what all these getter/setters emulate anyway (see getter and setter
> definitions at http://www.w3.org/TR/WebIDL/#es-attributes).

Really, though, are the WebIDL attributes all accurately representable by data properties without trapping magic that normalizes at least on set? DOM attributes do convert to a target type for the attribute. Data properties can' do that in JS.

/be


More information about the es-discuss mailing list