On Tue, Sep 24, 2013 at 1:34 PM, Adam Crabtree <[email protected]> wrote:
> Object.getPrototypeOf would not help me at all since it would not allow me > to assign a *new* __proto__ to a function I just created, but I *am* > mistaken, Function.create() would be sufficient in my cases. > > There's still more flexibility in __proto__ to reassign __proto__, which > Function.create and Object.getPrototypeOf would not provide. > I'm certain you mean Object.create, but otherwise I understand where you're going. Though this point was clear in your previous message, I'm still interested in understanding what circumstances your program is in where it needs to re-assign the [[Prototype]] of objects it doesn't own. Anyway, the solution you need is Object.setPrototypeOf(), which is specified for inclusion in ES6. Rick -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en --- You received this message because you are subscribed to the Google Groups "nodejs" 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/groups/opt_out.
