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

Issue 6499013: Add access check when Object.keys is called on the global js proxy (fixes iss... (Closed)

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

Description

Add access check when Object.keys is called on the global js proxy (fixes issue 1154) I will land access checks for a range of ES5 features in another patch (we added a bunch of cases like this in the past few weeks, i.e., cases where we simply use the global object instead of the js global proxy). Committed: http://code.google.com/p/v8/source/detail?r=6786

Patch Set 1 #

Total comments: 4

Patch Set 2 : '' #

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

Messages

Total messages: 3 (0 generated)
Rico
9 years, 10 months ago (2011-02-15 08:51:29 UTC) #1
Mads Ager (chromium)
LGTM http://codereview.chromium.org/6499013/diff/1/test/cctest/test-api.cc File test/cctest/test-api.cc (right): http://codereview.chromium.org/6499013/diff/1/test/cctest/test-api.cc#newcode5640 test/cctest/test-api.cc:5640: v8::HandleScope scope1; No need for this since you ...
9 years, 10 months ago (2011-02-15 08:56:10 UTC) #2
Rico
9 years, 10 months ago (2011-02-15 09:00:52 UTC) #3
http://codereview.chromium.org/6499013/diff/1/test/cctest/test-api.cc
File test/cctest/test-api.cc (right):

http://codereview.chromium.org/6499013/diff/1/test/cctest/test-api.cc#newcode...
test/cctest/test-api.cc:5640: v8::HandleScope scope1;
On 2011/02/15 08:56:10, Mads Ager wrote:
> No need for this since you have the handle scope above.

Done.

http://codereview.chromium.org/6499013/diff/1/test/cctest/test-api.cc#newcode...
test/cctest/test-api.cc:5648:
ExpectTrue("Object.keys(other).indexOf('blocked_prop')==-1");
On 2011/02/15 08:56:10, Mads Ager wrote:
> Spaces around '=='.

Done.

Powered by Google App Engine
This is Rietveld 408576698