Skip to content

Support ES6 Default Parameters #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
srm985 opened this issue Nov 24, 2018 · 2 comments
Open

Support ES6 Default Parameters #8

srm985 opened this issue Nov 24, 2018 · 2 comments
Labels

Comments

@srm985
Copy link

srm985 commented Nov 24, 2018

The use of ES6 default parameters causes the tool to throw an error. I know this isn't actually a true JavaScript object, but the syntax is very similar and it would be great if it was supported. The following is currently not permitted by the tool:

const {
   b = 2,
   a = 1
} = someObject;

Error: Please make sure your selected text is a JS object!

@SBeator
Copy link
Owner

SBeator commented Dec 3, 2018

As you said, this isn't actually a true JS object so the way to parse this "object" might be quite different with the true JS object. So the code/logic change might be a lot.

I can also mark this as a feature, but it will be a low priority feature.

It would be great if you can contribute to this change :)

@SBeator SBeator added the feature label Dec 3, 2018
@srm985
Copy link
Author

srm985 commented Dec 3, 2018

I will certainly try to look into it as time permits. Thank you for all of your work thus far!

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

No branches or pull requests

2 participants