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

Fix issues with default object params in async functions #96

Merged
merged 1 commit into from
Aug 23, 2016
Merged

Fix issues with default object params in async functions #96

merged 1 commit into from
Aug 23, 2016

Conversation

danez
Copy link
Member

@danez danez commented Aug 18, 2016

This fixes the other half of #92

const a = async ({bar = "bar"}) => {}

It was throwing an error because shorthands were not allowed in this scenario, by setting the correct params for parseExprListItem() when it is an async function fixes the problem.

Fix #92

@codecov-io
Copy link

codecov-io commented Aug 18, 2016

Current coverage is 96.91% (diff: 100%)

No coverage report found for master at 4506822.

Powered by Codecov. Last update 4506822...3d502a8

This change allows async functions to have a spread argument which
defines a default value.
@hzoo hzoo merged commit 2cfae60 into babel:master Aug 23, 2016
@danez danez deleted the dafault-params-92 branch August 31, 2016 08:14
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