extends null
is “derived” in ES2015.
class C extends null {
}
Constructor kind: derived
Prototype of C: Function.prototype
Prototype of C.prototype: null
via 15. Classes - Exploring ES6
But, @allenwb said:
I think it is a specification bug that extend null classes were marked as “derived”
– https://github.com/tc39/ecma262/issues/543#issuecomment-210191577
Edit(2016-04-20): ECMAScript spec is fixed.
- Normative: Set this appropriately for class extends null · tc39/ecma262@98c67f2
- Normative: Use proper default constructor with class extends null · tc39/ecma262@a35f0f3
If you interstend in the specification bug, please follow these issues:
blog comments powered by Disqus