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