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

Issue 11554019: Object.observe: Make array length and other magic data properties work correctly. (Closed)

Created:
8 years ago by rossberg
Modified:
8 years ago
CC:
v8-dev, adamk, rafaelw
Visibility:
Public.

Description

Object.observe: Make array length and other magic data properties work correctly. Also, disable TestFastElementsLength test for now, since it flakes on buildbots for yet unknown reasons. R=mstarzinger@chromium.org BUG=v8:2409 Committed: http://code.google.com/p/v8/source/detail?r=13213

Patch Set 1 #

Total comments: 5

Patch Set 2 : Addressing Michael's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+75 lines, -30 lines) Patch
M src/object-observe.js View 2 chunks +5 lines, -2 lines 0 comments Download
M src/objects.cc View 6 chunks +13 lines, -18 lines 0 comments Download
M src/property.h View 1 2 chunks +27 lines, -1 line 0 comments Download
M src/v8natives.js View 1 chunk +20 lines, -1 line 0 comments Download
M test/mjsunit/harmony/object-observe.js View 4 chunks +10 lines, -8 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
rossberg
8 years ago (2012-12-12 14:49:11 UTC) #1
Michael Starzinger
LGTM (with comments for the predicate in LookupResult). Adding Sven. https://codereview.chromium.org/11554019/diff/1/src/property.h File src/property.h (right): https://codereview.chromium.org/11554019/diff/1/src/property.h#newcode320 ...
8 years ago (2012-12-12 15:34:05 UTC) #2
rossberg
8 years ago (2012-12-12 15:41:10 UTC) #3
https://codereview.chromium.org/11554019/diff/1/src/property.h
File src/property.h (right):

https://codereview.chromium.org/11554019/diff/1/src/property.h#newcode320
src/property.h:320: return GetCallbackObject()->IsForeign();
On 2012/12/12 15:34:05, Michael Starzinger wrote:
> I think AccessorInfo callbacks should also return true here, they also look
like
> data properties to JavaScript.

Done.

https://codereview.chromium.org/11554019/diff/1/src/property.h#newcode321
src/property.h:321: default:
On 2012/12/12 15:34:05, Michael Starzinger wrote:
> I think Sven has to say something about this default case.

Unfolded default (also in GetLazyValue below).

Powered by Google App Engine
This is Rietveld 408576698