Re: Duplicate super call behaviour

2015-10-25 Thread Allen Wirfs-Brock
> On Oct 24, 2015, at 5:45 PM, Mark S. Miller wrote: > > > > On Sat, Oct 24, 2015 at 8:00 PM, Sebastian McKenzie > wrote: ... > But this check is performed at step 10 whereas the super constructor is > actually evaluated at

Re: Duplicate super call behaviour

2015-10-24 Thread Mark S. Miller
On Sat, Oct 24, 2015 at 8:00 PM, Sebastian McKenzie wrote: > I was recently reading the specification on the behaviour of duplicate > super() calls in derived constructors. Reading the grammar the following is > valid: > > ``` > class Foo { > constructor() { >

Duplicate super call behaviour

2015-10-24 Thread Sebastian McKenzie
I was recently reading the specification on the behaviour of duplicate super() calls in derived constructors. Reading the grammar the following is valid: ``` class Foo { constructor() { console.log("foobar); } } class Bar extends Foo { constructor() { super(); super(); } }