On Thu, Sep 19, 2013 at 3:54 PM, Alexandre Morgaut < alexandre.morg...@gmail.com> wrote:
> getPrototypeOf() is "meant" to be readonly > No it's not. Object.getPrototypeOf(foo) returns a reference to foo's [[Prototype]] (otherwise known as __proto__). It does no configuration of the object before returning. > for consistency with __proto__ a new setPrototypeOf() method is considered > in ECMAScript 6 > http://people.mozilla.org/~jorendorff/es6-draft.html#sec-19.1.3.19 > Yes, considered and has consensus, so it's perfectly valid to create a "polyfill" for setPrototypeOf http://webreflection.blogspot.com/2013/05/objectsetprototypeofo-proto-is-in-es6.html 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 nodejs@googlegroups.com To unsubscribe from this group, send email to nodejs+unsubscr...@googlegroups.com 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 nodejs+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.