regenerator icon indicating copy to clipboard operation
regenerator copied to clipboard

`async` word in comments applies regeneratorRuntime to code

Open zanona opened this issue 8 years ago • 1 comments

The following code does not transform as expected:

input

////some randon comment with the word async
for (const i of [1,2,3]) {
}

output

for (var i, t$0$0 = regeneratorRuntime.values([1,2,3]), t$0$1; !(t$0$1 = t$0$0.next()).done; ) {
  i = t$0$1.value;
}
screen shot 2016-06-21 at 10 44 15

expected It shouldn't change the input.

zanona avatar Jun 05 '16 11:06 zanona