mirror of https://github.com/tc39/test262.git
Fix: poisoned next function in "IteratorClose is called when reference evaluation produces a "return" completion". Fixes gh-670
This commit is contained in:
parent
76dacfb17c
commit
ac19f339e7
|
@ -45,6 +45,9 @@ var thisValue = null;
|
|||
var args = null;
|
||||
var iterable = {};
|
||||
var iterator = {
|
||||
next() {
|
||||
throw new Test262Error();
|
||||
},
|
||||
return: function() {
|
||||
returnCount += 1;
|
||||
thisValue = this;
|
||||
|
|
Loading…
Reference in New Issue