Sebastian McKenzie
62556f6102
finish code generator revamp, output is now much nicer and liberal with it's use of newlines
2015-02-20 23:24:11 +11:00
Sebastian McKenzie
e7f6572a3b
track arrays to avoid turning something into an array multiple times - closes #757
2015-02-12 21:30:48 +11:00
Sebastian McKenzie
e9cfd2df3e
fix toConsumableArray helper
2015-02-12 16:53:00 +11:00
Sebastian McKenzie
8d06a4301c
pdate tests to reflect toConsumableArray updates
2015-02-12 16:35:55 +11:00
Sebastian McKenzie
faa10df84c
add toConsumableArray helper for spread - fixes #757
2015-02-12 07:37:40 +11:00
Sebastian McKenzie
ae344aa23e
recurse over and duplicate array in toArray in order to handle sparse arrays - fixes #754
2015-02-12 00:33:04 +11:00
Ingvar Stepanyan
4c318166e1
Added complete TCO (tail call optimization).
...
Works across functions and generates simpler and faster code than #701 .
Works even across files when used in conjunction with `runtime` option.
Closes #256 .
2015-02-07 22:22:38 +02:00
Sebastian McKenzie
567479787b
update tests to reflect new helper compact behaviour
2015-01-26 11:48:35 +11:00
Sebastian McKenzie
4c9e39afa1
replace slice with a loop in rest parameters
2015-01-06 17:05:52 +11:00
Sebastian McKenzie
d945379b5b
remove isDynamic checks and always execute those expressions **once**
2015-01-03 21:48:06 +11:00
James Kyle
888ab5473a
Only slice arguments when necessary - fixes #239
2014-12-02 16:46:48 -08:00
Sebastian McKenzie
1a1e6bc3ba
remove arguments-to-array helper
2014-11-25 23:56:38 +11:00
Sebastian McKenzie
32f8f9e663
change arguments to array to an additional faster helper method
2014-11-23 21:43:28 +11:00
Sebastian McKenzie
3396cc84f1
fix spread not returning a new array with a single spread element
2014-11-23 20:16:10 +11:00
Sebastian McKenzie
24d9833170
better categorisation of transformers
2014-11-23 16:15:39 +11:00