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
(function*(){
var x;
return (yield alert((yield* (function*(){
var i$, ref$, len$, results$ = [];
for (i$ = 0, len$ = (ref$ = arr).length; i$ < len$; ++i$) {
x = ref$[i$];
results$.push(x);
}
return results$;
}()))));
});
While in all cases the behavior is as expected, the compilation is surprising and undocumented. Clearly the yield* is extraneous in both cases. I suspect there must have been use cases where the yield* makes sense, but could we at least document this, and clarify when this rule is applicable?
The text was updated successfully, but these errors were encountered:
Closest issue I can find is #667
compiles to:
compiles to:
While in all cases the behavior is as expected, the compilation is surprising and undocumented. Clearly the
yield*
is extraneous in both cases. I suspect there must have been use cases where theyield*
makes sense, but could we at least document this, and clarify when this rule is applicable?The text was updated successfully, but these errors were encountered: