maxtaco / tamejs

JavaScript code rewriter for taming async-callback-style code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Parser issue with anonymous functions

thorsent opened this issue · comments

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.