Henry Zhu
6e58954bce
v6.11.4
2016-07-19 21:59:53 -04:00
Justin Ridgewell
9a6890c92f
Default parameters cleanup ( #3574 )
...
* Remove buildDefaultParamAssign
This seems to have been
[added](https://github.com/babel/babel/commit/4b85b05839017ab2abc03ba2d1
e875a63f002890) in v5.5.4 to address
[#1690 ](https://phabricator.babeljs.io/T1690 ). It [became
“dead”](https://github.com/babel/babel/blob/v6.0.0/packages/babel-core/t
est/fixtures/transformation/es6.parameters/default-before-last/expected.
js) (as far as I can tell) in the [v6.0.0
commit](https://github.com/babel/babel/commit/ae7d5367f1c3d438667242d692
5db024f875fccd).
Either way, this code is never executed.
- `pushDefNode` is only called when the param is a default param.
- `buildDefaultParamAssign` (which is inside `pushDefNode`) only runs
of the param index is less than or equals to the lastNonDefaultParam.
AKA, is this param before any non-defaulting params.
Which is a contradiction.
* Small optimization
No need to check if we need an iife if we already know we need one.
2016-07-18 11:03:59 -04:00
Henry Zhu
7076c675d9
v6.11.3
2016-07-12 22:33:58 -04:00
Justin Ridgewell
823ffbd87c
Fix error in rest parameter length optimization ( #3573 )
...
If there aren’t enough arguments to get to the offset index, we would
return an negative length.
2016-07-12 21:12:45 -04:00
Logan Smyth
231f27f170
Fix non-unique 'ref' binding name - fixes T7468
2016-06-28 19:16:44 -07:00
Henry Zhu
cf6304a34b
v6.9.0
2016-05-17 14:49:17 -04:00
Jay Phelps
330071e59d
also visit ClassProperty's for rest param deopt check, fixes #T7311 ( #3481 )
2016-05-13 17:18:14 -04:00
Henry Zhu
05bf216339
v6.8.0
2016-05-02 19:43:49 -04:00
Henry Zhu
4c23b01798
change plugins to use babel-runtime 6
2016-04-24 20:06:23 -04:00
Amjad Masad
3d5969ecff
v6.7.0
2016-03-08 16:52:45 -08:00
Amjad Masad
b7465843dd
Merge pull request #3375 from jmm/parameters-rest-optimization-errors
...
Fix errors in parameters rest transformation [T7138]
2016-03-07 11:58:15 -08:00
Henry Zhu
57ef6a2b6a
v6.6.5
2016-03-04 18:16:17 -05:00
Amjad Masad
3667527d04
Revert "Remove flow"
...
This reverts commit 2827ff6b01dcce69e9d3c0402e96b52b3a2a47ee.
2016-03-03 14:49:20 -08:00
Henry Zhu
39a8f5b796
v6.6.4
2016-03-02 16:29:17 -05:00
Sam Goldman
2827ff6b01
Remove flow
2016-03-01 22:33:30 -08:00
Henry Zhu
f34e6518ff
v6.6.0
2016-02-29 16:12:12 -05:00
Jesse McCarthy
49e30f49bc
Fix rest optimization errors.
2016-02-25 18:42:52 -05:00
Jesse McCarthy
8419be1afc
Add postfix update expression fixtures.
...
(Failing.)
2016-02-25 17:11:19 -05:00
Jesse McCarthy
5f98d22b6d
Add for-of fixture.
...
(Failing.)
2016-02-25 17:11:19 -05:00
Jesse McCarthy
1c304965e7
Add rest loop position optimization fixture.
...
(Failing.)
With destructuring assignment to an element.
This makes the function ineligible for `arguments` optimization, while
remaining eligible for loop position optimization.
2016-02-25 17:11:19 -05:00
Victor Felder
183fbab967
Fix some rest optimization errors.
...
Commit message edited by @jmm.
2016-02-25 17:11:19 -05:00
Jesse McCarthy
6ca07974c9
Add array destruct w/o [rest[0]] on RHS fixture.
...
(Failing.)
2016-02-25 17:11:19 -05:00
Jesse McCarthy
0be3a58dd2
Add expected fixtures for new actuals.
...
(Failing.)
2016-02-25 17:11:18 -05:00
Ben Newman
a82bf11e2a
Add rest deoptimization fixtures.
...
(Failing.)
Commit message edited by @jmm.
2016-02-25 17:11:18 -05:00
Jesse McCarthy
3b8c5b7620
Merge pull request #3249 from jmm/rest-assign-el
...
Fix assignment to rest param element AST error.
Fix T6932.
2016-02-19 08:47:17 -05:00
Henry Zhu
26a3fdc3df
Merge pull request #3336 from erikdesjardins/async-arrow-rest
...
Fix T3077 (incorrect _arguments for async arrow functions with rest params)
2016-02-17 15:26:58 -05:00
Sebastian McKenzie
5b89849f43
Switch to klint, fix some lint rules
2016-02-14 23:25:14 +00:00
Erik
27a132a9cb
Add test for T3077 (Incorrect rest operator behavior for async arrow functions)
2016-02-09 13:13:28 -05:00
Henry Zhu
f9f8ad6eff
v6.5.0
2016-02-06 19:06:41 -05:00
Henry Zhu
e152e7044e
v6.4.5
2016-01-19 18:02:31 -05:00
Amjad Masad
d11bcae496
Merge pull request #3263 from jmm/rest-new-passing-fixtures
...
Increase `parameters/rest` transform test coverage
2016-01-17 14:00:26 -08:00
Jesse McCarthy
19937573a6
Fix assignment to rest param element.
2016-01-14 13:21:47 -05:00
Jesse McCarthy
49728be8b6
Test for no-opt of assign to rest param element.
...
That is, do not attempt to optimize assignments as opposed to reads.
(Failing.)
2016-01-14 13:21:40 -05:00
Jesse McCarthy
857675c99c
Add fixtures to exercise shadow conditional.
2016-01-13 17:37:29 -05:00
Jesse McCarthy
41066f55ea
Add fixtures for deopt due to arguments.
2016-01-13 17:37:23 -05:00
Jesse McCarthy
b17965ab8b
Improve comments.
2016-01-13 17:24:06 -05:00
Jesse McCarthy
059d7123db
Remove unnecessary else.
2016-01-13 17:24:06 -05:00
Jesse McCarthy
e4044062c3
Remove unnecessary length check & nesting.
2016-01-13 17:24:06 -05:00
Jesse McCarthy
4c69f1cda5
Replace func expr with arrow.
2016-01-13 17:24:06 -05:00
Jesse McCarthy
afd98ebd2a
Remove unnecessary literal return value.
2016-01-13 17:24:06 -05:00
Jesse McCarthy
bcfa58a6a2
Remove unnecessary intermediate var.
2016-01-13 17:24:06 -05:00
Henry Zhu
7af1bd4354
v6.4.2
2016-01-06 21:26:43 -05:00
Amjad Masad
59ea034df2
Support expressions in rest arg access
...
The current implementation assumes a numeric literal although it just
checks the base type.
2016-01-06 17:07:05 -08:00
kpdecker
28280be3ed
Add failing tests case for 6.4 rest.length issue
2016-01-06 17:34:43 -06:00
Henry Zhu
8cac20d845
v6.4.0
2016-01-06 15:34:12 -05:00
Fabio M. Costa
699868ed2a
[fix][babel-plugin-transform-es2015-parameters] arguments.length optimization bugfix
2015-12-28 21:56:49 -08:00
Amjad Masad
0d8e5a9e86
Fix over-parenthesizing of function expressions
2015-12-24 14:55:51 -08:00
Sebastian McKenzie
1fa24b1efd
rename babel-plugin-external-helpers-2 to babel-plugin-external-helpers
2015-12-24 03:54:40 +00:00
Amjad Masad
ae8b7ea352
v6.3.26
2015-12-22 23:11:59 -08:00
Amjad Masad
090e8b18ea
Merge pull request #3191 from vhf/destructuring-rest-args-initialization-order
...
Order of arguments initialization - fixes T6809
2015-12-22 20:51:20 -08:00