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

Issue 1424233005: Fix another corner-case behavior of Object::SetSuperProperty. (Closed)

Created:
5 years, 1 month ago by neis
Modified:
5 years, 1 month ago
Reviewers:
rossberg, Toon Verwaest
CC:
v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Fix another corner-case behavior of Object::SetSuperProperty. If the property is a data property on the holder (or does not exist) and is a readonly data property in the receiver, then we must fail. R=rossberg, verwaest@chromium.org BUG= Committed: https://crrev.com/b5d0e315828cca68272bf512b8c667ac6f82b90a Cr-Commit-Position: refs/heads/master@{#31751}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Address comment. #

Total comments: 2

Patch Set 3 : Address comment. #

Total comments: 1

Patch Set 4 : Remove should_throw argument of SetDataProperty. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -38 lines) Patch
M src/objects.h View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M src/objects.cc View 1 2 3 4 chunks +6 lines, -8 lines 0 comments Download
M test/mjsunit/es6/super.js View 4 chunks +10 lines, -26 lines 0 comments Download
M test/mjsunit/harmony/reflect.js View 1 2 chunks +9 lines, -2 lines 0 comments Download

Messages

Total messages: 15 (3 generated)
neis
5 years, 1 month ago (2015-11-03 10:39:14 UTC) #1
rossberg
https://codereview.chromium.org/1424233005/diff/1/src/objects.cc File src/objects.cc (right): https://codereview.chromium.org/1424233005/diff/1/src/objects.cc#newcode3773 src/objects.cc:3773: if (!JSObject::IsExtensible( I don't think this check is correct. ...
5 years, 1 month ago (2015-11-03 10:55:11 UTC) #2
neis
On 2015/11/03 10:55:11, rossberg wrote: > https://codereview.chromium.org/1424233005/diff/1/src/objects.cc > File src/objects.cc (right): > > https://codereview.chromium.org/1424233005/diff/1/src/objects.cc#newcode3773 > ...
5 years, 1 month ago (2015-11-03 11:08:52 UTC) #4
rossberg
lgtm
5 years, 1 month ago (2015-11-03 11:21:52 UTC) #5
Toon Verwaest
https://codereview.chromium.org/1424233005/diff/20001/src/objects.cc File src/objects.cc (right): https://codereview.chromium.org/1424233005/diff/20001/src/objects.cc#newcode3773 src/objects.cc:3773: &own_lookup, value, details.attributes(), should_throw); Won't this just SetDataProperty(it, value, ...
5 years, 1 month ago (2015-11-03 12:06:52 UTC) #6
neis
https://codereview.chromium.org/1424233005/diff/20001/src/objects.cc File src/objects.cc (right): https://codereview.chromium.org/1424233005/diff/20001/src/objects.cc#newcode3773 src/objects.cc:3773: &own_lookup, value, details.attributes(), should_throw); On 2015/11/03 12:06:52, Toon Verwaest ...
5 years, 1 month ago (2015-11-03 12:56:07 UTC) #7
Toon Verwaest
https://codereview.chromium.org/1424233005/diff/40001/src/objects.cc File src/objects.cc (right): https://codereview.chromium.org/1424233005/diff/40001/src/objects.cc#newcode3772 src/objects.cc:3772: return SetDataProperty(&own_lookup, value, should_throw); DefineOwnPropertyIgnoreAttributes used to pass in ...
5 years, 1 month ago (2015-11-03 13:18:26 UTC) #8
neis
On 2015/11/03 13:18:26, Toon Verwaest wrote: > https://codereview.chromium.org/1424233005/diff/40001/src/objects.cc > File src/objects.cc (right): > > https://codereview.chromium.org/1424233005/diff/40001/src/objects.cc#newcode3772 ...
5 years, 1 month ago (2015-11-03 13:40:52 UTC) #9
Toon Verwaest
lgtm thanks
5 years, 1 month ago (2015-11-03 14:08:59 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1424233005/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1424233005/60001
5 years, 1 month ago (2015-11-03 14:14:57 UTC) #13
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 1 month ago (2015-11-03 14:53:05 UTC) #14
commit-bot: I haz the power
5 years, 1 month ago (2015-11-03 14:53:15 UTC) #15
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/b5d0e315828cca68272bf512b8c667ac6f82b90a
Cr-Commit-Position: refs/heads/master@{#31751}

Powered by Google App Engine
This is Rietveld 408576698