Web IDL Garden Hose

David-Sarah Hopwood david-sarah at jacaranda.org
Sun Sep 27 10:54:26 PDT 2009


Cameron McCormack wrote:
> Maciej Stachowiak:
>>>    - Note: I think catchall deleters are used only by Web Storage and
>>> not by other new or legacy interfaces.
> 
> Allen Wirfs-Brock:
>> Seems like a strong reason to change to the proposed API to eliminate the need for
>> a new ES language extension.
> 
> When writing Web IDL originally, it didn’t seem at all to me that host
> objects were a disapproved of mechanism to get functionality that can’t
> be implemented with native objects.

That's why we need closer cooperation between TC39 and the standardizers
of WebIDL in future. If TC39 had been consulted, the disapproval of using
this mechanism in this way would have been expressed.

As Allen says, [[Delete]] and other internal properties are not intended
as an extension mechanism for arbitrary use by API bindings to ECMAScript.
Some internal methods, like [[Call]] and [[Construct]], are relatively
safe to override, but for others the invariants that the ES spec depends
on are quite delicate.

-- 
David-Sarah Hopwood  ⚥  http://davidsarah.livejournal.com



More information about the es-discuss mailing list