[[DefineOwnProperty]] (P, Desc)

Tom Van Cutsem tomvc.be at gmail.com
Sun Nov 30 05:31:55 PST 2014

2014-11-27 12:05 GMT+01:00 Axel Rauschmayer <axel at rauschma.de>:

> https://people.mozilla.org/~jorendorff/es6-draft.html#sec-proxy-object-internal-methods-and-internal-slots-defineownproperty-p-desc
> Quote (note typo in second item):
> 1. A property cannot be added as or modified to be non-configurable, if it
> does not exists as a non-configurable own property of the target object.
> 2. A property may not be non-configurable, if is corresponding
> configurable property of the target object exists.
> Question: Doesn’t #1 imply #2?

Hmm, I think you're right. It seems to me that #2 is more an invariant of
[[GetOwnProperty]] than of [[DefineOwnProperty]]. Perhaps it's just a
copy-paste remnant. Allen, can you clarify what you had in mind?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20141130/dbf89e16/attachment.html>

More information about the es-discuss mailing list