Violations of internal method invariants?

Tom Van Cutsem tomvc.be at gmail.com
Thu Jul 31 08:36:31 PDT 2014


2014-07-31 15:43 GMT+02:00 Jason Orendorff <jason.orendorff at 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.

Cheers,
Tom
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20140731/d9f4b995/attachment.html>


More information about the es-discuss mailing list