Standardizing __proto__
John-David Dalton
john.david.dalton at gmail.com
Fri Mar 18 18:06:22 PDT 2011
> It was a compatibility nightmare when people didn't namespace, and
> when you couldn't make non-enumerable properties. Using a namespace
> for additions to the prototype chain and using ES5's defineProperty to
> keep those additions from affecting enumeration behaviour seems like
> it overcomes those, at least to me.
Unfortunately not all browsers/environments support ES5
defineProperty, and not all third party code, widgets, ads, and js
libs guard against extensions in their for-in loops.
-JDD
More information about the es-discuss
mailing list