Reviewers: adamk, wingo,
Message:
Created Revert of for-of should throw if result object is not an object
Description:
Revert of for-of should throw if result object is not an object (patchset #4
id:60001 of https://codereview.chromium.org/929733003/)
Reason for revert:
Broke compile
Original issue's description:
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
Committed: https://crrev.com/ab2591ed9332086581ee25ef735cd1b3bbd7e2f0
Cr-Commit-Position: refs/heads/master@{#26806}
[email protected],[email protected]
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=v8:3916
Please review this at https://codereview.chromium.org/946943003/
Base URL: https://chromium.googlesource.com/v8/v8.git@master
Affected files (+215, -278 lines):
M src/ast.h
M src/ast-value-factory.h
M src/parser.cc
M src/runtime/runtime.h
M src/runtime/runtime-internal.cc
M test/mjsunit/es6/iteration-semantics.js
--
--
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.