es-discuss Digest, Vol 95, Issue 45
Sebastian McKenzie
sebmck at gmail.com
Tue Jan 20 04:48:57 PST 2015
Reason for the verbose and quirky output in 6to5 is due to performance, see https://github.com/6to5/6to5/pull/203
On Tue, Jan 20, 2015 at 11:45 PM, Fabrício Matté <ultcombo at gmail.com>
wrote:
>>
>> 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/879f315d/attachment.html>
More information about the es-discuss
mailing list