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

Issue 6035014: First cut at bug 992 (Closed)

Created:
9 years, 11 months ago by Peter Hallam
Modified:
9 years, 7 months ago
Reviewers:
Rico
CC:
v8-dev
Visibility:
Public.

Description

First cut at bug 992 Fixes JS portion of DefineOwnProperty when there is an existing property and the new descriptor is generic. Makes code follow spec steps more closely. Fixes typo for check for unchanged enumerable in step 6. Adds regression test. BUG= TEST=

Patch Set 1 #

Patch Set 2 : Format to 80 columns #

Total comments: 36

Patch Set 3 : Address code review comments #

Total comments: 1

Patch Set 4 : Fix Webkit layout test regression #

Patch Set 5 : MOre tests for bug 992 #

Total comments: 4

Patch Set 6 : Add regression test for 1083 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+297 lines, -36 lines) Patch
M src/objects.cc View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M src/runtime.cc View 1 2 3 4 chunks +18 lines, -3 lines 0 comments Download
M src/v8natives.js View 1 2 3 4 chunks +58 lines, -31 lines 0 comments Download
M test/mjsunit/object-define-property.js View 1 2 3 4 3 chunks +137 lines, -2 lines 0 comments Download
A test/mjsunit/regress/regress-1083.js View 1 2 3 4 5 1 chunk +38 lines, -0 lines 0 comments Download
A test/mjsunit/regress/regress-992.js View 1 2 3 4 5 1 chunk +43 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Peter Hallam
Hello Rico, it looks like we've both been working on DefineOwnProperty. Does this look reasonable?
9 years, 11 months ago (2011-01-04 22:33:51 UTC) #1
Rico
Hi Peter, Thanks a lot for the patch. In addition to the in file comments ...
9 years, 11 months ago (2011-01-05 13:37:01 UTC) #2
Rico
Two additional (very) small nits http://codereview.chromium.org/6035014/diff/2001/test/mjsunit/object-define-property.js File test/mjsunit/object-define-property.js (right): http://codereview.chromium.org/6035014/diff/2001/test/mjsunit/object-define-property.js#newcode753 test/mjsunit/object-define-property.js:753: // configurable property period ...
9 years, 11 months ago (2011-01-05 13:40:39 UTC) #3
Peter Hallam
Thanks for the code review Rico. This update addresses all the in file comments. I ...
9 years, 11 months ago (2011-01-05 23:50:31 UTC) #4
Rico
LGTM I had not considered the possibility of being able to change writable to false ...
9 years, 11 months ago (2011-01-07 09:47:30 UTC) #5
Rico
Hi Peter, I will land this for you with the nit (since you do not ...
9 years, 11 months ago (2011-01-07 11:06:49 UTC) #6
Rico
Landed in revision 6220 http://code.google.com/p/v8/source/detail?r=6220 On 2011/01/07 11:06:49, Rico wrote: > Hi Peter, > I ...
9 years, 11 months ago (2011-01-07 12:02:12 UTC) #7
Peter Hallam
Hey Rico, this version passes webkit layout test http/tests/security/xss-DENIED-defineProperty.html. The issue was that when going ...
9 years, 11 months ago (2011-01-29 00:56:59 UTC) #8
Rico
LGTM, thanks a lot for fixing this Peter. Since this also fixes 1083 we should ...
9 years, 10 months ago (2011-02-01 07:04:54 UTC) #9
Peter Hallam
9 years, 10 months ago (2011-02-01 14:45:38 UTC) #10
Addresses review comments and adds regression test for 1083.

http://codereview.chromium.org/6035014/diff/21001/test/mjsunit/regress/regres...
File test/mjsunit/regress/regress-992.js (right):

http://codereview.chromium.org/6035014/diff/21001/test/mjsunit/regress/regres...
test/mjsunit/regress/regress-992.js:29: // should just update
enumerable/configurable flags
On 2011/02/01 07:04:55, Rico wrote:
> Period at end of comment

Done.

http://codereview.chromium.org/6035014/diff/21001/test/mjsunit/regress/regres...
test/mjsunit/regress/regress-992.js:33: desc =
Object.getOwnPropertyDescriptor(obj, 'p');
On 2011/02/01 07:04:55, Rico wrote:
> var desc = Object.getOwnPropertyDescriptor(obj, 'p');

Done.

Powered by Google App Engine
This is Rietveld 408576698