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

Issue 555149: Added Object.defineProperty + needed internal functionality:... (Closed)

Created:
10 years, 10 months ago by Rico
Modified:
9 years, 6 months ago
CC:
v8-dev
Visibility:
Public.

Description

Added Object.defineProperty + needed internal functionality: DefineOwnProperty (changed to allow for redefinition of existing property) SameValue Extra info on propertydescriptor GetProperty HasProperty Currently the DefineOrRedefineAccessorProperty deletes the existing property on the object if it is a dataproperty (FIELD or NORMAL) and adds a new one. This can potentially be optimized. Committed: http://code.google.com/p/v8/source/detail?r=3786

Patch Set 1 #

Total comments: 30

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 12

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+783 lines, -98 lines) Patch
M src/messages.js View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M src/runtime.h View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M src/runtime.cc View 1 2 3 4 5 6 4 chunks +64 lines, -4 lines 0 comments Download
M src/runtime.js View 1 2 3 4 5 6 3 chunks +29 lines, -10 lines 0 comments Download
M src/v8natives.js View 1 2 3 4 5 6 12 chunks +129 lines, -15 lines 0 comments Download
M test/cctest/test-api.cc View 3 4 5 6 1 chunk +97 lines, -0 lines 0 comments Download
M test/es5conform/es5conform.status View 1 2 3 4 5 6 8 chunks +6 lines, -69 lines 0 comments Download
A test/mjsunit/object-define-property.js View 1 2 3 4 1 chunk +454 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Rico
10 years, 10 months ago (2010-01-28 14:50:45 UTC) #1
Mads Ager (chromium)
We should add API tests for this as well to see how we handle accessor ...
10 years, 10 months ago (2010-01-29 08:56:24 UTC) #2
Rico
Added tests to test-api.cc for API defined property Added extra test to object-define-property.js to test ...
10 years, 10 months ago (2010-02-01 13:27:39 UTC) #3
Mads Ager (chromium)
This is definitely getting there. Maybe we should have some tests in test-api that at ...
10 years, 10 months ago (2010-02-01 17:36:14 UTC) #4
Rico
Added test for CONSTANT_FUNCTION and extra tests for CALLBACKS in case these are partially redefined ...
10 years, 10 months ago (2010-02-02 17:07:07 UTC) #5
Rico
Changed DefineOrRedefineAccessor to also delete CONSTANT_FUNCTION properties before redefining it as an accessor (in case ...
10 years, 10 months ago (2010-02-03 12:02:30 UTC) #6
Mads Ager (chromium)
10 years, 10 months ago (2010-02-03 12:17:50 UTC) #7
LGTM

Powered by Google App Engine
This is Rietveld 408576698