> > Point 2 is incorrect (e.g. `new (Foo.bind.apply(Foo, > [undefined].concat(args)))`). >
I stand corrected. That's very good news, thanks! Nice and elegant solution, by the way. I should have taken the time to look at how current transpilers handle that. Your solution is similar to Traceur's generated output, but it is also interesting to see how [6to5 spreads arguments in a NewExpression]( http://6to5.org/repl/#?experimental=true&playground=true&evaluate=true&loose=false&code=class%20Foo%20%7B%7D%0Avar%20arr%20%3D%20%5B%5D%3B%0Anew%20Foo(...arr)%3B ). Oh, I also had a typo in the previous mail (`s/rest parameters/spread`), guess I was a bit too sleepy last night. /fm
_______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

