You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for(vari=0;i<someArray.length;++i){varsomeAsyncVar=awaitdoSomeAsyncStuff(someArray[i])//works when passed by indexconsole.log('someAsyncVar',someAsyncVar)//does execute}
Using "babel": "^5.6.14" and to compile runtimeGenerator from async/await:
Expected behavior. You can use await only in async functions, but in first example you are using it in sync .map callback. Second example works correct in async function.
In async functions where I use map or store args to variable, babel breaks.
Using map:
Storing string:
But this works:
Using
"babel": "^5.6.14"
and to compile runtimeGenerator from async/await:The text was updated successfully, but these errors were encountered: