add __proto__ classes caveat

This commit is contained in:
Sebastian McKenzie
2014-10-10 16:05:01 +11:00
parent fb67ab9b5d
commit 2403e8bec2

View File

@@ -258,6 +258,10 @@ specified in [polyfill](#polyfill) suffices.
Built-in classes such as `Date`, `Array` and `DOM` cannot be subclassed due to
limitations in ES5 implementations.
If you're inheriting from a class then static properties are inherited from it
via [__proto__](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/proto),
this is widely supported but you may run into problems with much older browsers.
## Differences
### Philosophy