ECMA TC 39 / W3C HTML and WebApps WG coordination

Cameron McCormack cam at mcc.id.au
Fri Sep 25 22:41:51 PDT 2009


Maciej Stachowiak:
> > Now, there may be pragmatic reasons for avoiding catchall getters and
> > setters:
> > …

Mark S. Miller:
> Yes. As an obvious example of #3, what happens when a Storage
> <http://dev.w3.org/html5/webstorage/> key is "toString"?

It’s a good example of something that’s not obvious, though it is
defined.  If [OverrideBuiltins] is on the interface, then toString is
taken as a a named property; otherwise, it’s the property from the
Storage prototype object.  This is handled by the host object [[Get]]
method:

  http://dev.w3.org/2006/webapi/WebIDL/#get

-- 
Cameron McCormack ≝ http://mcc.id.au/


More information about the es-discuss mailing list