es-discuss Digest, Vol 95, Issue 45
Fabrício Matté
ultcombo at gmail.com
Tue Jan 20 04:45:06 PST 2015
>
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20150120/fcebc3cd/attachment.html>
More information about the es-discuss
mailing list