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

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

From: Cameron McCormack <cam@mcc.id.au>
Date: Thu, 26 May 2011 12:13:59 +1200
To: David Flanagan <dflanagan@mozilla.com>, public-script-coord@w3.org
Message-ID: <20110526001359.GC22372@wok.mcc.id.au>
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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:14:03 UTC