W3C home > Mailing lists > Public > public-script-coord@w3.org > July to September 2014

Re: Violations of internal method invariants?

From: Tom Van Cutsem <tomvc.be@gmail.com>
Date: Thu, 31 Jul 2014 17:36:31 +0200
Message-ID: <CAKDfNj8dcp29FQOg=JcgZn3d=drgmPWSZ9cj1PQLZCjdEjhZEA@mail.gmail.com>
To: Jason Orendorff <jason.orendorff@gmail.com>
Cc: Boris Zbarsky <bzbarsky@mit.edu>, "public-script-coord@w3.org" <public-script-coord@w3.org>, es-discuss <es-discuss@mozilla.org>
2014-07-31 15:43 GMT+02:00 Jason Orendorff <jason.orendorff@gmail.com>:

> Right Thing: I think [[PreventExtensions]] on these objects should
> always return false. I think [[DefineProperty]] on these objects
> should return false if Desc.[[Configurable]] is false or if it's
> missing and would default to false. That'll cause Object.freeze(form)
> and Object.defineProperty(form, "x", {configurable: false}) to throw a
> TypeError. Seems legit.

+1. They key point is that [[DefineOwnProperty]] should not try to coerce
configurable:false to configurable:true. It should just reject such
property updates.

Received on Thursday, 31 July 2014 15:37:00 UTC

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