Le 07/04/2014 11:05, Andreas Rossberg a écrit :
On 4 April 2014 19:49, Allen Wirfs-Brock <[email protected]> wrote:
__proto__ is there for legacy compatibility.
setPrototypeOf should be preferred for new code
For new code, neither should be used.
yup.
For new code, in most practical cases, people can use class&extend
including to subclass Array and Date where __proto__ used to be the only
way.
David
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss