On Mon, May 5, 2014 at 5:13 PM, <[email protected]> wrote:

> I don't think it's wise to use `x` as property to add and delete ... any
> generic `Point` class will have most likely an `x` property maybe with a
> setter/getter or even worst, a typed value.
>

...oops.

You're right. When I wrote the fix I was thinking that o was an “empty”
object but I overlooked that the prototype could contribute accessor
properties.

By using defineProperty we can avoid interacting with the prototype.

Thanks for catching this!

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Google Caja Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to