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
Like you said, there's no problem here, and aggregating temporaries to emit at the end of a scope makes things a lot simpler during the emit phase. Perhaps when tree rewriting becomes our emit mechanism, this will be easier, so we can revisit this issue in the future. In the mean time, I'd consider filing a bug on Istanbul.
TypeScript Version:
1.8.2
Code
Expected behavior:
Actual behavior:
Thanks to variable hoisting, there is no functional problem here. However, I consider the compiled code unintuitive.
In addition, using Istanbul for code coverage highlights the
var _a;
declaration as not covered.The text was updated successfully, but these errors were encountered: