On 27 February 2015 at 15:22, Andri Möll <[email protected]> wrote: > noone? JSLint doesn't even let you write a for/in loop if you don't have > `obj.hasOwnProperty(key)` in it, and usually nobody wants inherited > properties (included methods from old classes/ahem prototypes) reassigned > everywhere. > > > Huh? Old prototypes? Those prototypes have their properties set as > non-enumerable since how long now? You yourself said one shouldn’t use > Object.assign for objects with behavior in the inheritance chain. And I > agree. It’s pretty much only useful for data objects (a.k.a plain). Those > have no methods in the inheritance chain one needs to ignore. > > Again, I ask, *what is the problem to which ignoring inherited properties > is the solution to?* >
The fragile base class problem is one. /Andreas
_______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

