Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(815)

Issue 929733003: for-of should throw if result object is not an object (Closed)

Created:
5 years, 10 months ago by arv (Not doing code reviews)
Modified:
5 years, 10 months ago
Reviewers:
wingo, adamk
CC:
v8-dev
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

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}

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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+278 lines, -215 lines) Patch
M src/ast.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M src/ast-value-factory.h View 1 2 3 1 chunk +34 lines, -32 lines 0 comments Download
M src/parser.cc View 1 2 3 1 chunk +29 lines, -3 lines 0 comments Download
M src/runtime/runtime.h View 1 chunk +176 lines, -175 lines 0 comments Download
M src/runtime/runtime-internal.cc View 1 2 3 1 chunk +10 lines, -0 lines 0 comments Download
M test/mjsunit/es6/iteration-semantics.js View 2 chunks +27 lines, -3 lines 0 comments Download

Messages

Total messages: 17 (3 generated)
arv (Not doing code reviews)
Fix some comments
5 years, 10 months ago (2015-02-23 22:01:59 UTC) #1
arv (Not doing code reviews)
https://codereview.chromium.org/929733003/diff/1/src/runtime/runtime-generator.cc File src/runtime/runtime-generator.cc (right): https://codereview.chromium.org/929733003/diff/1/src/runtime/runtime-generator.cc#newcode228 src/runtime/runtime-generator.cc:228: RUNTIME_FUNCTION(Runtime_ThrowIteratorResultNotAnObject) { I wasn't sure if this was the ...
5 years, 10 months ago (2015-02-23 22:02:24 UTC) #3
adamk
https://codereview.chromium.org/929733003/diff/20001/src/parser.cc File src/parser.cc (right): https://codereview.chromium.org/929733003/diff/20001/src/parser.cc#newcode2955 src/parser.cc:2955: NULL, Runtime::FunctionForId(Runtime::kInlineIsSpecObject), I think you need to pass a ...
5 years, 10 months ago (2015-02-23 22:17:11 UTC) #4
arv (Not doing code reviews)
Use empty string instead of null
5 years, 10 months ago (2015-02-23 22:24:40 UTC) #5
arv (Not doing code reviews)
PTAL https://codereview.chromium.org/929733003/diff/20001/src/parser.cc File src/parser.cc (right): https://codereview.chromium.org/929733003/diff/20001/src/parser.cc#newcode2964 src/parser.cc:2964: NULL, On 2015/02/23 22:17:10, adamk wrote: > Ditto, ...
5 years, 10 months ago (2015-02-23 22:26:09 UTC) #6
adamk
lgtm https://codereview.chromium.org/929733003/diff/20001/src/parser.cc File src/parser.cc (right): https://codereview.chromium.org/929733003/diff/20001/src/parser.cc#newcode2964 src/parser.cc:2964: NULL, On 2015/02/23 22:26:09, arv wrote: > On ...
5 years, 10 months ago (2015-02-23 22:35:35 UTC) #7
arv (Not doing code reviews)
add strings and move runtime function
5 years, 10 months ago (2015-02-23 22:50:47 UTC) #8
arv (Not doing code reviews)
Thanks https://codereview.chromium.org/929733003/diff/20001/src/parser.cc File src/parser.cc (right): https://codereview.chromium.org/929733003/diff/20001/src/parser.cc#newcode2964 src/parser.cc:2964: NULL, On 2015/02/23 22:35:35, adamk wrote: > On ...
5 years, 10 months ago (2015-02-23 22:51:54 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/929733003/60001
5 years, 10 months ago (2015-02-23 22:52:01 UTC) #12
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 10 months ago (2015-02-23 23:34:33 UTC) #13
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 10 months ago (2015-02-23 23:34:39 UTC) #14
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/87f77d6abaf8746719ae1f53b9eb61c1d1cf6a0b Cr-Commit-Position: refs/heads/master@{#26805}
5 years, 10 months ago (2015-02-23 23:35:02 UTC) #15
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/ab2591ed9332086581ee25ef735cd1b3bbd7e2f0 Cr-Commit-Position: refs/heads/master@{#26806}
5 years, 10 months ago (2015-02-23 23:35:05 UTC) #16
arv (Not doing code reviews)
5 years, 10 months ago (2015-02-23 23:52:02 UTC) #17
Message was sent while issue was closed.
A revert of this CL (patchset #4 id:60001) has been created in
https://codereview.chromium.org/946943003/ by arv@chromium.org.

The reason for reverting is: Broke compile.

Powered by Google App Engine
This is Rietveld 408576698