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

> last reminder is that apparently that operation flags forever the "object
> shape" resulting in slower objects during their lifecycle ... although I
> don't have many more details on this, it was rather a hint from @jdalton
>

Yep, that's not-a-surprise. We consider the correctness more important in
this case; though it would be nice to have a refinement that avoided
slowing down the typical case.

The main problem with the obvious tricks is that we can't just, for
example, look at 'props' to see if it defines any non-numeric properties,
because it might be some more or less magical object that gives different
answers at different times. Though come to think of it we could do our own
iteration and use defineProperty instead of defineProperties — but that's
getting hairy.

-- 

--- 
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