Steven Hargrove
d5aa6d3ff8
Fix for #4943 "Calling an async function with default parameter as function for arguments checking handled synchonous" ( #5688 )
...
* moved applying arguments inside new Promise handler block
* updated test fixture to reflect change
* corrected the apply to use correct scope and arguments
* added regression test for issue #4943 , added async-to-generator/async-default-arguments test
* added regression test for issue #4943
* switched back to using arrow function, since now pointing to v7 release base branch
* simplified async-to-generator regression test for issue #4943 , imrproved change to self/arguments refs by using arrow function on returned promise
* updated text fixtures
* removed es2015 preset usage from issue #4943 regression exec test
* added use strict to test fixture
* added use strict to test fixture
* added destructing transform to test options
* removed use strict from exec test
* added parameters & destructing transforms to test
2017-05-03 21:44:41 -07:00
Henry Zhu
62375cdf12
v7.0.0-alpha.9
2017-04-18 10:41:30 -04:00
Henry Zhu
25ae8c8554
v7.0.0-alpha.8
2017-04-17 15:12:31 -04:00
Henry Zhu
2a874dff8c
fix the fixtures after PR was merged
2017-04-06 14:14:15 -04:00
Diogo Franco
452f8f150c
Always use the native (or polyfilled) Promise in transform-async-to-generator ( #5536 )
...
* Always use the native (or polyfilled) Promise in transform-async-to-generator
Fixes #5531
* Simplify scope handling to only un-shadow the Program's Promise
Only the helper needs to see the native Promise.
2017-04-06 11:17:31 -04:00
Henry Zhu
c732f5e1d0
v7.0.0-alpha.7
2017-04-05 17:13:26 -04:00
Henry Zhu
f3ef03abfd
use caret for devDeps
2017-03-27 16:32:13 -04:00
Henry Zhu
7a1ccf076c
Misc ( #5545 )
...
* normalize npmignores
* fixup eslint ignore, etc
* lint
* remove unused
* rm from gitignore
* use strict
2017-03-25 21:46:16 -04:00
Henry Zhu
ab68800e06
v7.0.0-alpha.3
2017-03-23 15:49:01 -04:00
Henry Zhu
230712e091
Internal: back to fixed, publish everything ( #5436 )
2017-03-08 22:56:00 -05:00
Brian Ng
8a82cc060a
Run new lint rules ( #5413 )
2017-03-04 10:46:01 -05:00
Henry Zhu
11e54a6bd3
v7.0.0-alpha.1
2017-03-02 16:04:47 -05:00
Henry Zhu
b363e7b199
add @danez's changes
2017-03-01 12:54:22 -05:00
Logan Smyth
4ee385e96c
Avoid usage of exports/module.exports/require().
2017-02-21 16:52:42 -08:00
Kai Cataldo
e09ea222c9
Remove babel-runtime from packages' dependencies ( #5218 )
2017-01-27 09:04:35 -05:00
Henry Zhu
e9fc38bcd3
v6.22.0
2017-01-19 19:33:22 -05:00
Sergey Rubanov
292c3ca206
Refactor test packages to use ES modules instead of CJS ( #5138 )
2017-01-16 11:25:04 -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
Brian Ng
c2b3ea793f
Update async READMEs from babel.github.io [skip ci] ( #4919 )
2016-11-30 12:24:59 -05:00
Henry Zhu
e86f62b304
README: add --save-dev [skip ci]
...
Closes gh-4910
2016-11-29 08:40:27 -05:00
Sven SAULEAU
2311b5b53a
README: remove dollar in sh snippets [skip ci]
2016-11-29 08:39:23 -05:00
lion
862b387ad7
👕 Fix crlf to lf ( #4837 )
2016-11-13 21:42:08 +01:00
Justin Ridgewell
15eeeb6559
Fix line endings ( #4793 )
2016-10-28 23:44:00 -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
Henry Zhu
6d22f258db
v6.16.0
2016-09-28 15:38:45 -04: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
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
Logan Smyth
6470426f7a
v6.7.4
2016-03-22 20:37:46 -07:00
Logan Smyth
80aa424b75
Invalidate the scope cache if a node is moved to a different path - fixes T7194
2016-03-12 14:21:21 -08:00
Amjad Masad
3d5969ecff
v6.7.0
2016-03-08 16:52:45 -08:00
Logan Smyth
de21f2ef77
Resolve 'arguments' for rest args relative to direct parent.
2016-03-07 20:45:21 -08:00
Logan Smyth
42d3844f24
Revert special arrow wrapper and avoid shadowing arguments.
2016-03-07 20:45:20 -08:00
Logan Smyth
51ddeade8a
Avoid renaming this bindings in simple arrow function cases.
2016-03-07 20:45:20 -08:00
Logan Smyth
db3a43869c
Remap across arrow function boundaries - fixes T7108
2016-03-07 20:45:19 -08:00
Logan Smyth
2e210927d8
Move the necessary exec transforms to the exec test.
2016-03-07 20:45:19 -08:00
keijokapp
105299f26d
Fix named FunctionExpression scoping issue.
2016-02-29 19:21:48 +02:00
Henry Zhu
f9f8ad6eff
v6.5.0
2016-02-06 19:06:41 -05:00
Erik Desjardins
84af53d356
Async function will be hoisted above some imports
...
...but it's still below `exports.foo = undefined;`, so the test is intact
2016-02-03 12:11:14 -05:00
Erik
e759b5f835
Add exec test for T6882 (async function hoisting)
2016-02-03 12:11:08 -05:00
Erik
ec61bd9386
Revert "Don't mark async functions as hoist"
...
This reverts commit d34cb69912ee5789c7d1029c3be75d22d13e7bf8.
2016-02-02 22:13:26 -05:00
Amjad Masad
7428654c19
Merge pull request #3290 from AgentME/exportAsyncTest
...
Add test for T3026
2016-02-02 16:55:58 -08:00
horpto
d0a932d0e8
[hotfix][T2765#72428] Wrong 'this' for nested arrow in arrow function
2016-01-22 10:29:04 +05:00
Chris Cowan
7621d38bbd
Add test for T3026.
2016-01-20 12:11:57 -08:00
Amjad Masad
e9a913a3f6
v6.4.6
2016-01-20 00:58:48 -08:00
Amjad Masad
9980b6b8b2
[hotfix][T7006] Arrow functions don't have arguments bound
2016-01-20 00:41:17 -08:00
Henry Zhu
e152e7044e
v6.4.5
2016-01-19 18:02:31 -05:00
Amjad Masad
5c680181ba
Merge pull request #3257 from horpto/bugfix/T2765
...
[2765] transform-async-to-generator doesn't work for `this` inside arrow
2016-01-17 14:14:56 -08:00