Skip to content

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

@AshleyScirra

Description

@AshleyScirra

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".

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugConfirmed bughas PRHas an open PR that fixes this issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions