> Le 9 août 2016 à 18:58, Raul-Sebastian Mihăilă <[email protected]> a 
> écrit :
> 
> Claude, I don't see how non-extensibility and deleting properties are 
> connected.
> 

The issue is not deleting per se. The issue is that a property appears to be 
non-existent (because successfully deleted), and later existent again, which 
should not be allowed on non-extensible objects.

—Claude

> 
> ```js
> var target = Object.preventExtensions({ x: 1 })
> var proxy = new Proxy(target, {
>     deleteProperty() { return true }
> })
> 
> Object.isExtensible(proxy) // false
> delete proxy.x // true
> proxy.hasOwnProperty('x') // true
> ```
> 
> 
> 

_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to