Axel Rauschmayer wrote:
Addendum: For example, you won’t be able to reliably use Object.assign()
to mix an object with methods into a prototype object, because those
methods might be non-enumerable.

That's wrong use of Object.assign. Remember the debate on :=, there is intent distinction between [[Put]] and [[DefineOwnProperty]]. And Object.assign, if I am not mistaken, does [[Put]]. For copying methods, you should do [[DefineOwnProperty]] (that is, Object.define, if it is there).

--
Dr. Axel Rauschmayer
a...@rauschma.de <mailto:a...@rauschma.de>

Herby
_______________________________________________
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to