setPrototypeOf vs obj.__proto__ assignment

Andreas Rossberg rossberg at google.com
Mon Apr 7 02:05:14 PDT 2014


On 4 April 2014 19:49, Allen Wirfs-Brock <allen at wirfs-brock.com> wrote:
> __proto__ is there for legacy compatibility.
> setPrototypeOf should be preferred for new code

For new code, neither should be used.

/Andreas


More information about the es-discuss mailing list