Brian Ng
8a82cc060a
Run new lint rules ( #5413 )
2017-03-04 10:46:01 -05:00
Henry Zhu
b363e7b199
add @danez's changes
2017-03-01 12:54:22 -05:00
Daniel Tschinder
7c62278dcd
[7.0] Change for-await to use new AST ( #5321 )
2017-02-15 17:29:09 -05:00
Henry Zhu
672adba9a1
enable prefer const ( #5113 )
2017-01-14 09:48:52 -05:00
Logan Smyth
5aa87aab8d
Calculate the correct arity for async functions with destructuring - fixes #4977 ( #4978 )
2016-12-08 21:51:24 -05:00
Logan Smyth
80dfdd2a43
Only base async fn arity on non-default/non-rest params - fixes #4891 ( #4901 )
2016-12-08 09:48:15 -05:00
Jamesernator
dc4140dc5f
Fixed incorrect compilation of async iterator methods ( #4719 )
2016-10-14 14:38:57 -04:00
Daniel Tschinder
5a1984aa41
make babel-helper-remap-async-to-generator bc with babel 6.15 and lower ( #4603 )
2016-09-29 08:14:39 -04:00
Dan Harper
682e9658c9
Fix bodyless async functions ( #4600 )
...
* fix bodyless async functions (#4599 )
* Do the same in the async-generator-functions transform
2016-09-29 12:01:37 +02:00
zenparsing
26e79c5433
Implement support for async generator functions and for-await statements
2016-09-27 17:37:21 -04:00
Logan Smyth
231f27f170
Fix non-unique 'ref' binding name - fixes T7468
2016-06-28 19:16:44 -07:00
Logan Smyth
42d3844f24
Revert special arrow wrapper and avoid shadowing arguments.
2016-03-07 20:45:20 -08:00
Amjad Masad
5d0645e308
Merge pull request #3381 from keijokapp/fix-named-functionexpression-scoping-issue
...
Fix named async FunctionExpression scoping issue.
2016-03-07 13:39:52 -08:00
Amjad Masad
12ee11a0a4
Revert "Remove Flow annotations and pragmas"
...
This reverts commit 4252244d06b225ab26a02d52c04f9940a3e4d6a2.
2016-03-03 15:03:55 -08:00
keijokapp
105299f26d
Fix named FunctionExpression scoping issue.
2016-02-29 19:21:48 +02:00
Sam Goldman
4252244d06
Remove Flow annotations and pragmas
2016-02-28 13:18:57 -10: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
b5bcd64120
noflow some files
2016-02-14 23:58:37 +00:00
Erik Desjardins
a3bca783dd
Transformed generators for async function expressions should not be shadow functions
2016-02-12 11:25:11 -05:00
Erik
ec61bd9386
Revert "Don't mark async functions as hoist"
...
This reverts commit d34cb69912ee5789c7d1029c3be75d22d13e7bf8.
2016-02-02 22:13:26 -05:00
horpto
d0a932d0e8
[hotfix][T2765#72428] Wrong 'this' for nested arrow in arrow function
2016-01-22 10:29:04 +05:00
Amjad Masad
9980b6b8b2
[hotfix][T7006] Arrow functions don't have arguments bound
2016-01-20 00:41:17 -08:00
horpto
fa9f8ea4be
Fix for deeply nested async arrows
2016-01-11 04:37:16 +05:00
horpto
f2fdc74d1b
[2765] transform-async-to-generator doesn't work for this inside arrow
...
function
2016-01-10 21:52:04 +05:00
Henry Zhu
1d4526cd69
Merge pull request #3109 from phantom10111/additional-validators
...
Additional validators for CallExpression, NewExpresion,TemplateLiteral, ArrayExpression, SequenceExpression
2015-11-29 21:35:18 -05:00
Sławomir Laskowski
d34cb69912
Don't mark async functions as hoist
...
`babel-template` no longer crashes in IE attempting to access unpopulated error stack
2015-11-29 01:47:24 +01:00
phantom10111
615160ba66
Fix babel-helper-remap-async-to-generator to not fail with the new validation rules
2015-11-25 23:09:21 +01:00
phantom10111
1f38dcdf8a
Set the correct node type in helper-remap-async-to-generator
2015-11-07 23:06:02 +01:00
Henry Zhu
042af348bc
helper-remap-async-to-generator: account for ObjectMethod - fixes #2838
2015-11-05 23:57:53 -05:00
Sebastian McKenzie
1796b1926c
Merge pull request #2798 from amasad/fix-2782
...
Fix recursion in async-to-generator transforms
2015-11-04 19:19:15 +00:00
Amjad Masad
2220167903
Fix recursion in async-to-generator transforms
...
We're naming the inner generator function in the name of the
original async function. This means when people have recursive
await calls it refers to the generator version. Which is fine
if we had a `yield *` (delegate). However, if not it leads to
returning an unresolved generator object.
We can either capture all recursive calls and add a delegate, which
becomes really hard with expressions. I choose to have the name
reserved to the exposed function `retFunction`.
Fixes #2782
2015-11-03 17:05:41 -08:00
Amjad Masad
e33ad7d2fb
Convert arrow functions when remaping to generator. Fixes #2789
2015-11-03 14:58:31 -08:00
Sebastian McKenzie
d2d48e9f7f
fix bug where async class methods weren't having their awaits converted to yields in the async to generator helper - fixes #2661
2015-11-02 07:05:00 +00:00
Sebastian McKenzie
39bdecb119
fix async function remap helper from outputing incorrect calls causing wrong scoping - fixes #2708 - fixes #2715
2015-11-01 04:39:31 +00:00
Sebastian McKenzie
ae7d5367f1
6.0.0
...
I'm extremely stupid and didn't commit as I go. To anyone reading this
I'm extremely sorry. A lot of these changes are very broad and I plan on
releasing Babel 6.0.0 today live on stage at Ember Camp London so I'm
afraid I couldn't wait. If you're ever in London I'll buy you a beer
(or assorted beverage!) to make up for it, also I'll kiss your feet and
give you a back massage, maybe.
2015-10-29 17:51:24 +00:00
Sebastian McKenzie
9320d661f9
flesh out async-to-generator and bluebird-coroutines transformers, add babel-helper-async-to-generator module
2015-10-05 17:25:43 +01:00