Descriptionfor-of should throw if result object is not an object
This is done using desugaring. Before this we had:
result = iterator.next()
with this we instead do:
!%_IsSpecObject(result = iterator.next()) &&
%ThrowIteratorResultNotAnObject(result)
BUG=v8:3916
LOG=N
Committed: https://crrev.com/ab2591ed9332086581ee25ef735cd1b3bbd7e2f0
Cr-Commit-Position: refs/heads/master@{#26806}
Patch Set 1 #
Total comments: 3
Patch Set 2 : Fix some comments #
Total comments: 9
Patch Set 3 : Use empty string instead of null #Patch Set 4 : add strings and move runtime function #
Messages
Total messages: 17 (3 generated)
|