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

Crash minifying return [...iter][0] in babili 0.1.4 #608

Closed
AshleyScirra opened this issue Jun 30, 2017 · 0 comments
Closed

Crash minifying return [...iter][0] in babili 0.1.4 #608

AshleyScirra opened this issue Jun 30, 2017 · 0 comments
Labels
bug Confirmed bug has PR Has an open PR that fixes this issue

Comments

@AshleyScirra
Copy link

Compiling this with babili 0.1.4:

function foo()
{
	return [...iter][0];
}

crashes with "TypeError: unknown: Property argument of ReturnStatement expected node to be of a type ["Expression"] but instead got "SpreadElement".

@boopathi boopathi added bug Confirmed bug has PR Has an open PR that fixes this issue labels Jun 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Confirmed bug has PR Has an open PR that fixes this issue
Projects
None yet
Development

No branches or pull requests

2 participants