From 58bf5d87ca885c0451d22ab30bf1e0024b49017d Mon Sep 17 00:00:00 2001 From: Kevin Gibbons Date: Mon, 21 Oct 2024 14:43:10 -0700 Subject: [PATCH] Editorial: fix IteratorClose call in %IteratorHelperPrototype%.return --- spec.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec.html b/spec.html index ef6053e6d4..809d66e092 100644 --- a/spec.html +++ b/spec.html @@ -46608,7 +46608,7 @@

%IteratorHelperPrototype%.return ( )

1. If _O_.[[GeneratorState]] is ~suspended-start~, then 1. Set _O_.[[GeneratorState]] to ~completed~. 1. NOTE: Once a generator enters the completed state it never leaves it and its associated execution context is never resumed. Any execution state associated with _O_ can be discarded at this point. - 1. Perform ? IteratorClose(_O_.[[UnderlyingIterator]], ReturnCompletion(*undefined*)). + 1. Perform ? IteratorClose(_O_.[[UnderlyingIterator]], NormalCompletion(~unused~)). 1. Return CreateIteratorResultObject(*undefined*, *true*). 1. Let _C_ be ReturnCompletion(*undefined*). 1. Return ? GeneratorResumeAbrupt(_O_, _C_, *"Iterator Helper"*).