Claude Pache (2014-02-03T18:22:56.000Z)
domenic at domenicdenicola.com (2014-02-05T19:42:41.905Z)
Le 2 févr. 2014 à 23:27, Allen Wirfs-Brock <allen at wirfs-brock.com> a écrit : > I'm inclined to agree with Arv's conclusion. What do you think? I think that this bug is indeed a good reason to use `super(...arguments)` instead of `return super(...arguments)`. However, I am slightly worried that, with the ES6 class syntax, the `constructor` method looks like a regular method, but it behaves differently w.r.t. inheritance. So, nonstandard uses of this method (wmay mysteriously fail when used on a super-class. Therefore, it would be nice if `return expression` would be statically forbidden in the `constructor` method when defined using the `class` syntax (but a bare `return` is fine, which slightly complicates the grammar).