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
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
Ingvar Stepanyan
29361c055a
Fix #718 .
2015-02-08 11:56:39 +02:00
Sebastian McKenzie
4ea0175ca7
simplify set template
2015-02-08 20:23:22 +11:00
Sebastian McKenzie
799445c745
add property method assignment wrapper generator template
2015-02-08 20:23:22 +11: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
eb14f1da00
implement optional TDZ - fixes #563
2015-02-08 01:27:22 +11:00
Sebastian McKenzie
8a143bf957
use a template in tail call transformer - @RReverser
2015-02-07 23:52:35 +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
36fa174901
change instance reference to this in class super constructor call template - fixes #689
2015-02-04 10:03:15 +11:00
Sebastian McKenzie
8d81a382f7
inline back the super constructor call helper - fixes #684
2015-02-04 08:39:45 +11: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
1cbbe00b7a
Merge pull request #582 from kruppel/kurt/setter-super
...
Support use of super inside instance setter.
2015-01-30 21:47:24 +11:00
Sebastian McKenzie
dda372f93e
use either Object.assign or the extends helper
2015-01-29 21:07:51 +11:00
Sebastian McKenzie
30259f3a99
don't use a generator iterator function as this in the asyncToGenerator helper - fixes #625
2015-01-29 11:53:30 +11:00
Sebastian McKenzie
960a70287d
add improved for-of loose behaviour that supports destructuring - fixes #615
2015-01-29 00:50:22 +11:00
Kurt Ruppel
bbfb297d73
Support use of super inside instance setter.
2015-01-26 15:55:27 -08:00
Sebastian McKenzie
10ede7c934
fix extends helper checking the wrong object - thanks @appden!
2015-01-27 07:38:08 +11:00
Sebastian McKenzie
2869878046
use hasOwnProperty in extends helper
2015-01-27 07:16:57 +11:00
Sebastian McKenzie
75460b91d8
clean up module formatters and fix interopRequireWildcard helper
2015-01-26 00:14:04 +11:00
Sebastian McKenzie
3fdf492dcf
safer common interop - closes #493
2015-01-25 14:03:25 +11:00
Sebastian McKenzie
8f68f62f8a
add jscs
2015-01-22 19:23:56 +11:00
Sebastian McKenzie
c4fb5a5e40
more compact async to generator helper
2015-01-22 17:19:22 +11:00
Sebastian McKenzie
61f1fae83b
remove unused template
2015-01-20 16:47:52 +11:00
Lee Byron
9624663e60
Improve performance of rest parameter.
...
Rather than initing an empty array and filling, create an array of the correct size up-front. Minor gain on chromium, but considerably (~5x) faster in spidermonkey/firefox.
2015-01-15 08:41:53 -05:00
Sebastian McKenzie
55054e45da
Revert "Improve performance of rest parameter."
...
This reverts commit e5463cc2a97cafbf9d35656038f19b45dd75ffce.
2015-01-15 19:34:33 +11:00
Lee Byron
e5463cc2a9
Improve performance of rest parameter.
...
Rather than initing an empty array and filling, create an array of the correct size up-front. Minor gain on chromium, but considerably (~5x) faster in spidermonkey/firefox.
2015-01-14 19:08:14 -05:00
Christopher Monsanto
4fdcf685d3
add loose transform for tagged template literals
2015-01-13 14:48:31 -05:00
Sebastian McKenzie
8afec8b12a
rename fast mode to loose #465
2015-01-14 00:24:34 +11:00
Sebastian McKenzie
0f55a66f5b
add "fast" option for transformers
2015-01-13 22:02:04 +11:00
Sebastian McKenzie
76a3771943
change ambiguous _inherits parameters
2015-01-12 20:54:37 +11:00
Sebastian McKenzie
6131cea5b2
add classesFastSuper optional transformer - fixes #451
2015-01-12 10:19:22 +11:00
Sebastian McKenzie
9f3e1eabfd
simplify define properties
2015-01-11 03:21:05 +11:00
Christopher Monsanto
393d52088a
optional for-of transformer that puts arrays in fast path
2015-01-09 20:53:48 -05:00
Sebastian McKenzie
1536d3de91
Revert "add base optional object observe transformer"
...
This reverts commit b619e843a9ffae2376aafceeb7d0b47ac79f8ac7.
2015-01-09 21:18:55 +11:00
Sebastian McKenzie
1c8d24f78c
remove exportsWildcard helper in favor of defaults #430
2015-01-09 20:08:05 +11:00
Sebastian McKenzie
b619e843a9
add base optional object observe transformer
2015-01-09 19:57:21 +11:00
Sebastian McKenzie
944a9d3908
pass exports to exportsWildcard - fixes #430
2015-01-09 19:48:11 +11:00
Brian Donovan
28d10b8eb4
Ensure more than one level of superclass works.
2015-01-08 13:33:02 -08:00