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

Issue 572003: Added IsProperty() check to result in DefineOrRedefineAccessor - if no check ... (Closed)

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

Description

Added IsProperty() check to result in DefineOrRedefineAccessor - if no check this causes the debug check to fails since type() asserts that the lookup_type != NOT_FOUND. This does not change any functionality since we explicitly checked if it was one of the three types that we need to delete. Also changed defineProperties in v8natives to actually return the object being defined (as specified by spec) Committed: http://code.google.com/p/v8/source/detail?r=3794

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 3

Patch Set 3 : '' #

Patch Set 4 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -3 lines) Patch
M src/runtime.cc View 1 2 3 1 chunk +4 lines, -3 lines 0 comments Download
M src/v8natives.js View 3 1 chunk +1 line, -0 lines 0 comments Download
A test/mjsunit/object-define-properties.js View 1 chunk +56 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Rico
10 years, 10 months ago (2010-02-04 09:53:19 UTC) #1
Mads Ager (chromium)
http://codereview.chromium.org/572003/diff/2001/3002 File src/runtime.cc (right): http://codereview.chromium.org/572003/diff/2001/3002#newcode2909 src/runtime.cc:2909: if (result.IsProperty() && I think you should use result.IsValid() ...
10 years, 10 months ago (2010-02-04 09:57:01 UTC) #2
Rico
Added object-define-properties.js test file to include test of return value from Object.defineProperties (+ some extra ...
10 years, 10 months ago (2010-02-04 10:55:23 UTC) #3
Mads Ager (chromium)
10 years, 10 months ago (2010-02-04 11:25:33 UTC) #4
LGTM

Powered by Google App Engine
This is Rietveld 408576698