Re: [WebIDL] Indexed properties and [[Extensible]]

David Flanagan:
> > A simpler approach would be to require an implementation to throw a
> > TypeError on any attempt to set [[Extensible]] to false on an object
> > that has an indexed getter.  It just doesn't make sense to be able
> > to freeze a live collection.

Cameron McCormack:
> I think that’s a fine idea; let’s do that.

Object.freeze actually should be easy enough, because you would just
take a snapshot of the object.

Object.seal and Object.preventExtensions are the difficult cases.

It’s still easier to disallow all three, however.

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

Received on Thursday, 26 May 2011 00:14:27 UTC