3 ms·
I still don’t understand why no one does `child.__proto__ = parent;` to inherit properties on the constructor chain too.
by yuchi 13y ago
I still don’t understand why no one does `child.__proto__ = parent;` to inherit properties on the constructor chain too.
- nevir 13y agoThere's a bunch of caveats to __proto__: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/proto https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
- deleted 13y ago[deleted]
- jashkenas 13y agoBecause then your JavaScript will break in both old, and even relatively recent versions of Internet Explorer.