Sebastian McKenzie
05be131647
rename bin tests to reflect new babel name
2015-02-16 01:08:26 +11:00
Sebastian McKenzie
1d34d03ac8
rename to babel
2015-02-15 18:09:05 +11:00
Sebastian McKenzie
2a2dff0eaf
remap head variables when a closure is required in blockScoping transformer - fixes #763
2015-02-14 20:21:34 +11:00
Sebastian McKenzie
3649fad485
ensureBlock on if statements with expression return statements - fixes #764
2015-02-14 19:07:23 +11:00
Sebastian McKenzie
b5c9c84542
update bin/6to5 tests to reflect new source location
2015-02-14 12:59:31 +11:00
Sebastian McKenzie
8a5da57162
use default property on 6to5-runtime modules - fixes #774
2015-02-14 00:59:34 +11:00
Sebastian McKenzie
23b5eeb72f
use Symbol.iterator in for symbol detection and add the conversion of it to the selfContained transformer - @zloirock
2015-02-13 21:05:21 +11:00
Sebastian McKenzie
e841b88cbc
fix 6to5-node test collisions
2015-02-13 20:48:52 +11:00
Sebastian McKenzie
3d874f2479
update sliceToArray helper, again...
2015-02-13 20:45:43 +11:00
Sebastian McKenzie
228719102a
update sliceToArray tests
2015-02-13 20:39:37 +11:00
Sebastian McKenzie
9208e7e594
update common standard import test
2015-02-13 17:47:46 +11:00
Sebastian McKenzie
a567531f77
ignore member expressions in constants transformer - fixes #770
2015-02-13 17:18:42 +11:00
Sebastian McKenzie
9cce72def0
update tests that use the toSlicedArray helper
2015-02-13 17:04:18 +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
Sebastian McKenzie
a4932e0e0f
add messages to make it easier to make error messages
2015-02-11 15:57:30 +11:00
Sebastian McKenzie
db93c52182
opt out of tail recursion optimisation if the owner id has been reassigned - fixes #744
2015-02-11 11:27:50 +11:00
Sebastian McKenzie
56a953df64
add basic support for class property initializers - #619
2015-02-11 10:59:44 +11:00
Sebastian McKenzie
47b803ef24
remove old tail call transformer
2015-02-10 18:33:51 +11:00
Sebastian McKenzie
7f61c8b65e
add descriptor falsy check to defaults helper - #739
2015-02-10 18:33:29 +11:00
Sebastian McKenzie
4fa9aa63a3
Merge branch 'better-tail-recursion'
2015-02-10 18:04:05 +11:00
Luke Scott
c6920a0e60
fix defaults helper in strict mode - #738
2015-02-09 20:38:57 -08:00
Sebastian McKenzie
825d84ba52
fix defaults helper iteration - #738
2015-02-10 13:20:19 +11:00
Sebastian McKenzie
94a0eb5b06
copy over descriptors and handle non-enumerable properties in defaults helper - fixes #738
2015-02-10 13:06:26 +11:00
Ingvar Stepanyan
0d542b61d3
Performance improvements for TCO.
...
http://jsperf.com/tco/17
2015-02-09 19:00:31 +02:00
Sebastian McKenzie
ee5cb8d9ed
clean up tail call transformer
2015-02-08 22:47:50 +11:00
Sebastian McKenzie
45c507056a
add back old tail call implementation
2015-02-08 22:09:41 +11:00
Sebastian McKenzie
74d6b61973
disable es6 tail call tests
2015-02-08 21:21:32 +11:00
Sebastian McKenzie
bcc9e016b1
only evaluate object destructuring pattern once
2015-02-08 20:23:22 +11:00
Ingvar Stepanyan
91362f80b1
Clean up transformations after #714 .
...
Since now we have runtime helper, we don't need
expression -> statement conversions anymore.
2015-02-08 10:40:03 +02:00
Dali Zheng
d358a86e98
make __esModule property not enumerable
2015-02-07 21:19:11 -08: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
c0af67eca1
add support for super in object literals - fixes #411
2015-02-08 02:01:17 +11:00
Sebastian McKenzie
eb14f1da00
implement optional TDZ - fixes #563
2015-02-08 01:27:22 +11:00
Sebastian McKenzie
689ce048e6
remove tail call exec test
2015-02-07 23:52:41 +11:00
Sebastian McKenzie
eb1ae70bfa
Merge pull request #701 from RReverser/master
...
Add tail recursion optimization.
2015-02-07 23:37:43 +11:00
Ingvar Stepanyan
24ef81908c
Increase test timeout for Travis.
2015-02-07 14:34:23 +02:00
Ingvar Stepanyan
b53b41cef3
Provide placeholders for proper function length.
2015-02-07 14:26:03 +02:00
Sebastian McKenzie
7f985fe08a
fix incorrect strict module formatter variable - fixes #706
2015-02-07 19:29:32 +11:00
Sebastian McKenzie
e75ce94578
move reactCompat option onto an optional transformer
2015-02-07 15:59:00 +11:00
Sebastian McKenzie
f2ae88af93
add commonStandard module formatter - fixes #675
...
will be merged into strict formatters in next major
TODO: rewrite all module formatters as they've gotten out of han
2015-02-07 10:31:52 +11:00
Sebastian McKenzie
726451f86f
reverts d6b39bc89b6022aecf69da500deb5b88a0266b85
2015-02-07 09:54:18 +11:00
Ingvar Stepanyan
5b2216b348
Add tail recursion optimization.
...
As per ES6, VMs should perform tail call optimization and prevent growth of call stack.
This adds tail call optimization for recursion case (when function has explicit name and calls itself in `return`).
Cross-function optimization is not currently performed as it's more complicated and requires value tracking.
2015-02-06 16:34:35 +02:00
Sebastian McKenzie
b66367ddde
change namespace of minification.propertyLiterals and minifciation.memberExpressionLiterals to es3
2015-02-06 22:42:16 +11:00
Sebastian McKenzie
76ae1682a3
remove context arg in favor of this, rename TraversalIteration to TraversalPath, and remove ast handlers
2015-02-06 01:47:43 +11:00
Sebastian McKenzie
b8f8f24e82
add newline to es6 destructuring member expression test
2015-02-05 19:41:53 +11:00
Sebastian McKenzie
c35a007401
simplify replace supers helper
2015-02-05 19:41:37 +11:00