Multiple globals and changing prototypes

Mark S. Miller erights at
Wed Oct 16 07:25:46 PDT 2013

Keep in mind that if an object is non-extensible, its [[Prototype]] cannot
be changed.

On Wed, Oct 16, 2013 at 3:54 AM, Anne van Kesteren <annevk at> wrote:

> I believe last time this came up here some people hard concerns so I
> was wondering whether that was still the case and what alternatives
> there might be.
> In we're
> considering to define the behavior Gecko exhibits when moving a node
> between trees in different global objects.
> Event handlers and custom elements make this somewhat more tricky and
> we're discussion how to work with them in the bug.
> The reason we want to change prototypes is to reduce the potential for
> memory leaks and give consistent behavior across nodes in a tree. I.e.
> they'll always be from the same global.
> (There's also the more complicated scenario, which we
> should discuss separately at some point I think, but for those trying
> to figure out how to define multiple realms in ECMAScript that's worth
> looking into.)
> --
> _______________________________________________
> es-discuss mailing list
> es-discuss at

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list