new [[HasProperty]] invariant for non-extensible objects

Raul-Sebastian Mihăilă raul.mihaila at gmail.com
Sun Mar 5 14:16:12 UTC 2017


On Sun, Mar 5, 2017 at 2:52 PM, Oriol _ <oriol-bugzilla at hotmail.com> wrote:

>
> delete obj.foo;
>
>
When you delete the property of an ordinary object, it stops being 'an
observable own property using [[GetOwnProperty]]'. So,
`Object.getOwnPropertyDescriptor(obj, "foo")` returns undefined afterwards.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20170305/5365172f/attachment.html>


More information about the es-discuss mailing list