Changing [[Prototype]]

Anne van Kesteren annevk at
Mon Dec 24 01:48:32 PST 2012

I thought I'd give a heads up as over on www-dom at we're
discussing two cases where we likely need to change the prototype
chain of objects: and methods that do the equivalent
of document.adoptNode() (including that method itself):

It seems ES6 has __proto__ which also allows modifying [[Prototype]]
so presumably this is nothing particularly bad, although it is very
ugly :-(


More information about the es-discuss mailing list