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
Sebastian McKenzie
606f813822
enable traceur test suite by default
2015-02-08 20:23:21 +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
Sebastian McKenzie
f5e9909e71
Merge pull request #716 from daliwali/master
...
Make `__esModule` property not enumerable
2015-02-08 16:30:26 +11:00
Dali Zheng
d358a86e98
make __esModule property not enumerable
2015-02-07 21:19:11 -08:00
Sebastian McKenzie
055545980c
update traceur test runner
2015-02-08 16:19:05 +11:00
Sebastian McKenzie
e8184a9bc5
fix browser api location in browser test
2015-02-08 14:34:43 +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
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
a15f218e9b
dump code to esvalid errors
2015-02-08 01:26:46 +11:00
Sebastian McKenzie
067cf43f52
fix File::addHelper unknown helper error message
2015-02-08 00:01:26 +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
Sebastian McKenzie
e639c82f2f
fix internal refactoring...
2015-02-05 14:08:02 +11:00
Sebastian McKenzie
f365cc1248
more internal rearchitecturing
2015-02-05 14:05:15 +11:00
Sebastian McKenzie
c923010292
fix source map tests
2015-02-04 23:20:47 +11:00
Sebastian McKenzie
d6b39bc89b
HomeObject isn't dynamic - fixes #690
2015-02-04 18:47:58 +11:00
Sebastian McKenzie
58bed088f5
throw an error when destructuring a null or undefined value on an empty object pattern - fixes #681
2015-02-04 17:35:24 +11:00
Sebastian McKenzie
7d950cd60a
i made the javascripts faster with a transformer prepass to check what transformers actually have to be ran
2015-02-04 12:56:34 +11:00
Sebastian McKenzie
ffc9244f88
make #683 more inline with the official jsx compiler
2015-02-04 10:38:35 +11:00
Sebastian McKenzie
5a81d22167
Merge pull request #683 from caseywebdev/concat-string-literals
...
Concatenate adjacent string literals in JSX
2015-02-04 10:22:51 +11:00
Sebastian McKenzie
b1f0ecf244
update class super constructor inheritance tests
2015-02-04 10:03:57 +11:00
Sebastian McKenzie
8d81a382f7
inline back the super constructor call helper - fixes #684
2015-02-04 08:39:45 +11:00
Casey Foster
2562b0c201
Concatenate adjacent string literals in JSX
2015-02-03 10:46:54 -06:00
Jay Phelps
9880990fa7
First pass at converting identifiers/words from en-au -> en-us
2015-02-03 00:08:43 -08:00
Sebastian McKenzie
72de8f5c9b
fix class tests to reflect new call behaviour
2015-02-03 15:35:24 +11:00
Sebastian McKenzie
3a11c7d46b
as per "ES6 February 2, 2015 Draft Rev 32" "Constructors defined using class definition syntax throw when called as functions"
2015-02-03 15:16:16 +11:00
Sebastian McKenzie
92d9b3ff5f
make it illegal to export a __esModule property - #673
2015-02-03 14:41:11 +11:00
Sebastian McKenzie
630f1717f0
clean up scope collision tracking and constants transformer - fixes #331
2015-02-03 13:20:52 +11:00
Sebastian McKenzie
e712c5225b
use the current file basename for the displayName of export default React.createClass - 6to5/6to5-sublime#21
2015-02-02 23:48:03 +11:00
Sebastian McKenzie
41d721e372
fix source map tests
2015-02-02 21:32:45 +11:00
Sebastian McKenzie
0e2d7fa941
remove throw expectation on undefiend this tests
2015-02-02 10:50:29 +11:00
Sebastian McKenzie
fb360039ce
remap top level this to undefined - #562
2015-02-02 10:44:17 +11:00
Sebastian McKenzie
3fe7df9a48
fix regenerator destructuring test
2015-02-01 18:42:15 +11:00
Sebastian McKenzie
25566a24f6
block hoist assignment pattern destructuring - fixes #652
2015-02-01 18:33:36 +11:00
Sebastian McKenzie
8c7ba20f86
fix regenerator transformer order - fixes #617
2015-02-01 16:19:35 +11:00