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

Issue 6287018: Compare JSObjects by identity immediately. (Closed)

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

Description

Compare JSObjects by identity immediately. When invoking EQUALS JS builtin, 1st argument is passed as a receiver and if it's a global object, it gets overwritten with global proxy object and thus one gets incorrect results. BUG=v8::1082 Committed: http://code.google.com/p/v8/source/detail?r=6555

Patch Set 1 #

Total comments: 2

Patch Set 2 : Addressing Mads' concerns #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -0 lines) Patch
M src/api.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M test/cctest/test-api.cc View 1 1 chunk +19 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
antonm
Mads, may you have a look? I am not quite satisfied with this CL: ideally ...
9 years, 10 months ago (2011-01-31 16:14:01 UTC) #1
Mads Ager (chromium)
LGTM http://codereview.chromium.org/6287018/diff/1/test/cctest/test-api.cc File test/cctest/test-api.cc (right): http://codereview.chromium.org/6287018/diff/1/test/cctest/test-api.cc#newcode12211 test/cctest/test-api.cc:12211: CHECK_EQ(1, global->StrictEquals(global)); Please use true and false instead ...
9 years, 10 months ago (2011-02-01 08:36:34 UTC) #2
antonm
9 years, 10 months ago (2011-02-01 12:43:12 UTC) #3
http://codereview.chromium.org/6287018/diff/1/test/cctest/test-api.cc
File test/cctest/test-api.cc (right):

http://codereview.chromium.org/6287018/diff/1/test/cctest/test-api.cc#newcode...
test/cctest/test-api.cc:12211: CHECK_EQ(1, global->StrictEquals(global));
On 2011/02/01 08:36:34, Mads Ager wrote:
> Please use true and false instead of 1 and 0.

Sure and should have done it myself.

Powered by Google App Engine
This is Rietveld 408576698