W3C home > Mailing lists > Public > public-script-coord@w3.org > October to December 2011

Re: Lazy interface objects?

From: Cameron McCormack <cam@mcc.id.au>
Date: Fri, 09 Dec 2011 13:22:09 +1100
Message-ID: <4EE170D1.7050908@mcc.id.au>
To: David Flanagan <dflanagan@mozilla.com>
CC: public-script-coord@w3.org
On 21/09/11 2:48 PM, David Flanagan wrote:
> Unfortunately, the first paragraph of WebIDL ยง4.5 requires an interface
> object property to be [[Writable]]: true. Thus, it seems that using a
> getter for the property would not conform. Can the spec be relaxed on
> this point? It seems that the relevant detail is that the property can
> be set: that it should be a writable data property or a accessor
> property with a setter.
>
> (Thanks to David Bruant for pointing this out. See
> https://bugzilla.mozilla.org/show_bug.cgi?id=687042 for context.)

I would rather specify exactly how the property behaves, i.e. as a 
writable data property.  As I mention in the bug, the global will need 
to be a proxy due to its named properties etc. anyway, at which point 
you can perform your optimisation as part of your proxy traps.

I won't be making any change to the spec here.  For the Disposition of 
Comments document, could you please indicate whether this resolution is 
satisfactory or not.

Thanks,

Cameron
Received on Friday, 9 December 2011 02:22:51 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 May 2013 19:30:05 UTC