Skip to content
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

Fix folding array literals - bail on spread element #698

Merged
merged 1 commit into from
Sep 25, 2017

Conversation

@boopathi boopathi added the Tag: Bug Fix Pull Request fixes a bug label Sep 25, 2017
Copy link
Member

@vigneshshanmugam vigneshshanmugam left a comment

Choose a reason for hiding this comment

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

Looks good

@boopathi boopathi merged commit b729a41 into master Sep 25, 2017
@boopathi boopathi deleted the k-folding-array-0 branch September 25, 2017 12:59
@@ -51,7 +58,7 @@ module.exports = ({ types: t }) => {
return evaled.value;
})
.join(sep.value);
return bad ? undefined : t.stringLiteral(str);
return bad ? void 0 : t.stringLiteral(str);
Copy link
Contributor

Choose a reason for hiding this comment

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

Why does this use void 0 instead of undefined?

Copy link
Member Author

Choose a reason for hiding this comment

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

we use void 0 everywhere in the project. Just sticking to that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Tag: Bug Fix Pull Request fixes a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants