Skip to content

Parser issue with anonymous functions #36

@thorsent

Description

@thorsent

I'm getting a parser error with this code:

function a(){
return function(){
for(j=0;j<3;j++) {
await{
b("test", defer());
}
}
};
}

The parsing error goes away if the function isn't anonymous. Also goes away if I eliminate the for loop. Strange.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions