wycats at gmail.com
Thu Oct 18 07:22:55 PDT 2012
The original proposal was for two methods: Object.assign and Object.define.
Object.assign would pave the cowpath of all of the extend() APIs already in
circulation. We thought the precedent of not copying enumerable methods in
those cases was enough reason for Object.assign to have this behavior.
We discussed Object.define for a while, but didn't feel like there was
enough precedent either with a library function like Object.define or with
Object.defineProperty in general to make a decision here. Instead, we would
working with the new ES5 property API so we can provide something official
and solid in a future version.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss