Fix: poisoned next function in "IteratorClose is called when reference evaluation produces a "return" completion". Fixes gh-670

This commit is contained in:
Rick Waldron 2020-09-24 15:07:06 -04:00
parent 76dacfb17c
commit ac19f339e7
1 changed files with 3 additions and 0 deletions

View File

@ -45,6 +45,9 @@ var thisValue = null;
var args = null;
var iterable = {};
var iterator = {
next() {
throw new Test262Error();
},
return: function() {
returnCount += 1;
thisValue = this;