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

[BugFix] Incorrect behavior when arrow functions are used as default values #189

Merged
merged 1 commit into from
Jun 27, 2017

Conversation

lorefnon
Copy link
Contributor

When arrow functions are used as default values in arguments, the output is currently incorrect.

Example:

/**
* @param {String} [x=()=>{}]
*/
function hello() {}

Expected default value in generated documentation: () => {}
Current default value in generated documentation: ()

@jsf-clabot
Copy link

jsf-clabot commented Mar 25, 2017

CLA assistant check
All committers have signed the CLA.

@lorefnon lorefnon force-pushed the bugfix/default-arrow-fn branch 2 times, most recently from f0a58a5 to 3e7b614 Compare March 25, 2017 11:17
@lorefnon
Copy link
Contributor Author

lorefnon commented Apr 5, 2017

Can this be reviewed by someone ?

@lorefnon
Copy link
Contributor Author

Can someone look into this ?

Copy link
Member

@platinumazure platinumazure left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me. Thanks! Sorry this has slipped through the cracks-- most of the Doctrine folks on the core ESLint team have been unavailable lately.

@lorefnon
Copy link
Contributor Author

I see. Thanks for reviewing.

@platinumazure
Copy link
Member

@eslint/eslint-team Can someone else review this? I'm happy to merge if we can get one more set of eyes on this.

@kaicataldo
Copy link
Member

@lorefnon Sorry about the delay on this! There isn't a lot of traffic in this repo and it's easy to miss things. Thanks for the contribution!

@platinumazure platinumazure merged commit 9aed54d into eslint:master Jun 27, 2017
@platinumazure
Copy link
Member

Merged, thanks @lorefnon for contributing! (And thanks very much for your patience!)

@lorefnon
Copy link
Contributor Author

Glad to see this merged.

@lorefnon lorefnon deleted the bugfix/default-arrow-fn branch June 27, 2017 19:32
@lorefnon
Copy link
Contributor Author

Can you please release this ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants