Is “class C extends null” derived?

https://github.com/tc39/ecma262/issues/543

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.


If you interstend in the specification bug, please follow these issues:




blog comments powered by Disqus