redefine.js - A Simplified ES5 Approach
brendan at mozilla.com
Sun Jan 20 13:36:40 PST 2013
For defining properties, looks nice and concise. The first bit shows no
win over Object.create, IMHO.
Andrea Giammarchi wrote:
> and the blog entry
> then I swear, I won't bother anymore unless somebody will ask anything
> or give some feedback :-)
> On Sat, Jan 19, 2013 at 10:41 PM, Andrea Giammarchi
> <andrea.giammarchi at gmail.com <mailto:andrea.giammarchi at gmail.com>> wrote:
> OK, if you prefer a list of HOWTO that compares redefine.js and
> ES5 approach, included problems with inheritance, here a more
> technical face 2 face approach:
> Thanks in advance for any feedback or question about it.
> On Sat, Jan 19, 2013 at 1:33 PM, Andrea Giammarchi
> <andrea.giammarchi at gmail.com <mailto:andrea.giammarchi at gmail.com>>
> not only "Security Demands Simplicity", but development
> demands simplicity too :-)
> I don't remember who asked me to show a simplified approach to
> ES5 descriptors, Object.create, defineProperty, and
> defineProperties, but here a tiny library which aim is to make
> developers life easier, the usage of defaults for grouped type
> of descriptors, and the fact it does not break if some evil
> code redefine some Object.prototype.writable/configurable
> property in the global scope.
> I'd appreciate any sort of feedback when and if you have time
> and please do not hesitate to ask me more, if necessary, thanks.
> Best Regards,
> Andrea Giammarchi
> es-discuss mailing list
> es-discuss at mozilla.org
More information about the es-discuss