XS fails to cache next
for array-destructuring
#1223
Labels
confirmed
issue reported has been reproduced
next
for array-destructuring
#1223
Environment: XS 14.2.0 32 4
Description
Array-destructuring does not cache an iterator's
next
method as required by the ECMAScript specification.Steps to Reproduce
Actual behavior
Expected behavior
DestructuringAssignmentEvaluation on an |ArrayAssignmentPattern| with argument value (the iterable responsible for providing values) is specified to always start with GetIterator(value, SYNC), which gets the Symbol.iterator method of value and uses GetIteratorFromMethod to invoke it and return a corresponding Iterator Record capturing the resulting iterator and its
next
method for use by IteratorDestructuringAssignmentEvaluation. But XS incorrectly gets thenext
method before each step (and fails to get it at all forconst [] = …
).The text was updated successfully, but these errors were encountered: