Comment #5 on issue 3916 by [email protected]: for-of should throw TypeError if the iterator does not return an object
https://code.google.com/p/v8/issues/detail?id=3916#c5

The following revision refers to this bug:
https://chromium.googlesource.com/v8/v8.git/+/ab2591ed9332086581ee25ef735cd1b3bbd7e2f0

commit ab2591ed9332086581ee25ef735cd1b3bbd7e2f0
Author: arv <[email protected]>
Date: Mon Feb 23 23:34:34 2015

for-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

Review URL: https://codereview.chromium.org/929733003

Cr-Commit-Position: refs/heads/master@{#26806}

[modify] http://crrev.com/ab2591ed9332086581ee25ef735cd1b3bbd7e2f0/src/runtime/runtime-internal.cc


--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to