Skip to content
This repository has been archived by the owner on May 19, 2018. It is now read-only.

Fix issues with flow-types and async function #95

Merged
merged 1 commit into from
Aug 23, 2016
Merged

Fix issues with flow-types and async function #95

merged 1 commit into from
Aug 23, 2016

Conversation

danez
Copy link
Member

@danez danez commented Aug 18, 2016

I noticed that #92 actually contains two bugs, so I splited them into two separate PRs.

This one resolves the issue with

const a = async (b:string = '') => {};

The fix here was simply to also call this.parseParenItem which without flow is doing nothing, but with flow enabled it is actually parsing the type annotation.

Fixes #92

the typeAnnotation was not correctly resolved in async
functions
@codecov-io
Copy link

codecov-io commented Aug 18, 2016

Current coverage is 96.78% (diff: 100%)

Merging #95 into master will decrease coverage by 0.13%

@@             master        #95   diff @@
==========================================
  Files            19         19          
  Lines          2922       2922          
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
- Hits           2832       2828     -4   
- Misses           90         94     +4   
  Partials          0          0          

Powered by Codecov. Last update b649671...b027d44

@hzoo hzoo merged commit db0705b into babel:master Aug 23, 2016
@danez danez deleted the flow-92 branch August 31, 2016 08:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

flow + async + default params => Unexpected Token error (T7484)
3 participants