Description[parser] Fix bug in for-of desugaring.
When reading the value property of an iterator result fails, we must not close the iterator.
This was not discovered earlier because the tests had a subtle bug.
This CL fixes both the desugaring and the tests.
BUG=
Committed: https://crrev.com/d3aefe8cc3e8bae9fd4e3fd308aa4a35d3829efa
Cr-Commit-Position: refs/heads/master@{#37571}
Patch Set 1 #Patch Set 2 : gsave #Patch Set 3 : gsave #
Total comments: 1
Patch Set 4 : Rebase. #
Messages
Total messages: 27 (13 generated)
|