DescriptionImplement iterator finalization in array destructuring.
We must close the iterator whenever the destructuring didn't exhaust it, unless an iterator operation (eg. next) threw. We do this by wrapping the iterator use in a try-catch-finally similar to the desugaring of for-of.
This is behind --harmony-iterator-close.
R=adamk@chromium.org
BUG=v8:3566
LOG=Y
Committed: https://crrev.com/3062af70eb8e7dc49501981237c658ff5a861780
Cr-Commit-Position: refs/heads/master@{#34654}
Patch Set 1 #
Total comments: 18
Patch Set 2 : Address comments. #
Total comments: 1
Patch Set 3 : Address two comments #Patch Set 4 : git cl format #Patch Set 5 : Rebase #
Messages
Total messages: 17 (6 generated)
|