Skip to content

Commit

Permalink
Don't use ES6 in the for-of helper (#11302)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Mar 21, 2020
1 parent 7ca8144 commit 3d8f48c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/babel-helpers/src/helpers.js
Expand Up @@ -1102,19 +1102,19 @@ helpers.createForOfIteratorHelper = helper("7.9.0")`
var it, normalCompletion = true, didErr = false, err;
return {
s() {
s: function() {
it = o[Symbol.iterator]();
},
n() {
n: function() {
var step = it.next();
normalCompletion = step.done;
return step;
},
e(e) {
e: function(e) {
didErr = true;
err = e;
},
f() {
f: function() {
try {
if (!normalCompletion && it.return != null) it.return();
} finally {
Expand Down

0 comments on commit 3d8f48c

Please sign in to comment.