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

Issue 1198523002: [es6] throw TypeError when setting cyclic prototype value (Closed)

Created:
5 years, 6 months ago by caitp (gmail)
Modified:
5 years, 6 months ago
CC:
v8-dev
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[es6] throw TypeError when setting cyclic prototype value Object.setPrototypeOf() throws a TypeError if value would create a cycle. Previously a plain Error was thrown rather than a TypeError. BUG=v8:4197 R=mike@bocoup.com LOG=N Committed: https://crrev.com/1765866b0b378334180a307c8819b0420a702812 Cr-Commit-Position: refs/heads/master@{#29169}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add proto-accessor tests #

Total comments: 1

Patch Set 3 : spaces between operators and operands #

Patch Set 4 : Fix webkit failure #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -2 lines) Patch
M src/objects.cc View 1 chunk +2 lines, -1 line 0 comments Download
M test/mjsunit/harmony/set-prototype-of.js View 1 2 1 chunk +18 lines, -0 lines 0 comments Download
M test/mjsunit/proto-accessor.js View 1 2 1 chunk +18 lines, -0 lines 0 comments Download
M test/webkit/cyclic-prototypes-expected.txt View 1 2 3 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 19 (7 generated)
caitp (gmail)
that should do it
5 years, 6 months ago (2015-06-19 16:31:05 UTC) #1
mike4
Nice, clean fix. And so fast! I just had one idea about another assertion--comment in-line. ...
5 years, 6 months ago (2015-06-19 16:43:12 UTC) #2
caitp (gmail)
https://codereview.chromium.org/1198523002/diff/1/test/mjsunit/harmony/set-prototype-of.js File test/mjsunit/harmony/set-prototype-of.js (right): https://codereview.chromium.org/1198523002/diff/1/test/mjsunit/harmony/set-prototype-of.js#newcode153 test/mjsunit/harmony/set-prototype-of.js:153: Object.setPrototypeOf(object, value); On 2015/06/19 16:43:12, mike4 wrote: > How ...
5 years, 6 months ago (2015-06-19 17:05:36 UTC) #4
arv (Not doing code reviews)
LGTM Maybe update the CL description to say that we used to throw an Error ...
5 years, 6 months ago (2015-06-19 17:12:27 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1198523002/40001
5 years, 6 months ago (2015-06-19 17:21:30 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1198523002/60001
5 years, 6 months ago (2015-06-19 17:36:04 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/linux_blink_rel/builds/67627)
5 years, 6 months ago (2015-06-19 20:09:54 UTC) #13
caitp (gmail)
On 2015/06/19 20:09:54, commit-bot: I haz the power wrote: > Try jobs failed on following ...
5 years, 6 months ago (2015-06-19 20:11:51 UTC) #14
caitp (gmail)
On 2015/06/19 20:11:51, caitp wrote: > On 2015/06/19 20:09:54, commit-bot: I haz the power wrote: ...
5 years, 6 months ago (2015-06-19 22:16:09 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1198523002/60001
5 years, 6 months ago (2015-06-19 22:16:38 UTC) #17
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 6 months ago (2015-06-19 22:18:24 UTC) #18
commit-bot: I haz the power
5 years, 6 months ago (2015-06-19 22:18:49 UTC) #19
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/1765866b0b378334180a307c8819b0420a702812
Cr-Commit-Position: refs/heads/master@{#29169}

Powered by Google App Engine
This is Rietveld 408576698