archives

« Bugzilla Issues Index

#3917 — 12.14.5.3 IteratorDestructuringAssignmentEvaluation: iteratorRecord.[[done]] not set in elision when iterator completed


12.14.5.3 Runtime Semantics: IteratorDestructuringAssignmentEvaluation

Elision : ,
Elision : Elision ,

The sub-steps of step 1 resp. step 3 probably need to be changed to:
---
a. Let next be IteratorStep(iteratorRecord.[[iterator]]).
b. If next is an abrupt completion, set iteratorRecord.[[done]] to true.
c. ReturnIfAbrupt(next).
d. If next is false, set iteratorRecord.[[done]] to true.
---

Otherwise the completed iterator status is not set after IteratorStep.


fixed in rev34 editor's draft


fixed in rev34