Re: Lazy interface objects?

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