Allen Wirfs-Brock (2014-02-02T22:27:59.000Z)
domenic at domenicdenicola.com (2014-02-05T19:41:59.902Z)
I made the change in rev 22 to make the default constructor: return super(...args) However that resulted in this bug: https://bugs.ecmascript.org/show_bug.cgi?id=2491 from Arv: > The problem arises when we extend an old school "class" where the code does not > explicitly set constructor. > > ```js > function B() {} > B.prototype = { ... } > class C extends B {} > new C() instanceof C // false > ``` > > The reason why this fails is that `B.prototype.constructor === Object` so `new > C()` returns `Object()`. > > > The work around is to set `B.prototype.constructor = B` but I feel like the > problem, adding return added solved, is smaller than the problem it introduces. I'm inclined to agree with Arv's conclusion. What do you think?