On Sat, Oct 20, 2012 at 9:55 AM, Boris Zbarsky <bzbar...@mit.edu> wrote:

> Do we have a plan for adoptNode?  If we're allocating nodes out of the JS
> heap, presumably we'll need to brain-transplant the JSObject and then copy
> over the implementation into the new compartment... and make sure we update
> any pointers to the implementation, right?
>

Couldn't we replace the original with a proxy that forwards to the new
object? It would get a bit complex if the node is adopted many times, but
seems like it ought to work.

Rob
-- 
“You have heard that it was said, ‘Love your neighbor and hate your enemy.’
But I tell you, love your enemies and pray for those who persecute you,
that you may be children of your Father in heaven. ... If you love those
who love you, what reward will you get? Are not even the tax collectors
doing that? And if you greet only your own people, what are you doing more
than others?" [Matthew 5:43-47]
_______________________________________________
dev-servo mailing list
dev-servo@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-servo

Reply via email to