Don't use ES6 in the for-of helper (#11302)

This commit is contained in:
Nicolò Ribaudo 2020-03-21 02:22:25 +01:00 committed by GitHub
parent 7ca814489a
commit 3d8f48cb16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 {