>> As far as I am aware, there is no way to change a property that isn’t at the >> beginning of the property chain, because the change will create a new >> property there. >> >> Are there plans to change this? It would be nice to have something akin to >> class methods (without accessing the prototype via some other, e.g. global, >> reference).
> In order to access a reference to the prototype of an object, you can use > Object.getPrototypeOf. Right. That's what I didn’t think of: Iterating over the prototype chain until you get to the object that actually owns a given property and then set it there. Thanks, Axel -- Dr. Axel Rauschmayer [email protected] twitter.com/rauschma home: rauschma.de blog: 2ality.com _______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

