archives

« Bugzilla Issues Index

#1523 — 12.6.4: For-of completion values


The for-of semantics seem to complete with the last result.value where result.done was false, or undefined if the first result.done was true. Why not complete with the result.value of the result for which result.done is true?


I mis-read the spec; it completes with the body's completion value. Please close if this is intended.


In Bug 3007 there is another proposal for using result.value as the completion value.


Completing with the body's completion value is intentional and consistent with other similar statements