From ac19f339e70f11ea416d783b16614b3a0e692eef Mon Sep 17 00:00:00 2001 From: Rick Waldron Date: Thu, 24 Sep 2020 15:07:06 -0400 Subject: [PATCH] Fix: poisoned next function in "IteratorClose is called when reference evaluation produces a "return" completion". Fixes gh-670 --- src/dstr-assignment/array-rest-iter-rtrn-close.case | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/dstr-assignment/array-rest-iter-rtrn-close.case b/src/dstr-assignment/array-rest-iter-rtrn-close.case index 3fb5b46ff4..072ba61a44 100644 --- a/src/dstr-assignment/array-rest-iter-rtrn-close.case +++ b/src/dstr-assignment/array-rest-iter-rtrn-close.case @@ -45,6 +45,9 @@ var thisValue = null; var args = null; var iterable = {}; var iterator = { + next() { + throw new Test262Error(); + }, return: function() { returnCount += 1; thisValue = this;