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

Issue 118374: Introduce an API to force the deletion of a property ignoring... (Closed)

Created:
11 years, 6 months ago by Mads Ager (chromium)
Modified:
9 years, 7 months ago
Reviewers:
Kasper Lund
CC:
v8-dev
Visibility:
Public.

Description

Introduce an API to force the deletion of a property ignoring interceptors and dont-delete attributes. Minor change to the behavior of eval: throw exception when calling eval in a context for which the global has been detached. This matches the behavior of both Firefox and Safari post navigation in the browser. Committed: http://code.google.com/p/v8/source/detail?r=2118

Patch Set 1 #

Total comments: 6

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+248 lines, -46 lines) Patch
M include/v8.h View 1 2 chunks +9 lines, -1 line 0 comments Download
M src/api.cc View 1 chunk +13 lines, -0 lines 0 comments Download
M src/handles.h View 1 chunk +3 lines, -0 lines 0 comments Download
M src/handles.cc View 3 chunks +11 lines, -2 lines 0 comments Download
M src/ia32/macro-assembler-ia32.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M src/objects.h View 4 chunks +10 lines, -7 lines 0 comments Download
M src/objects.cc View 12 chunks +40 lines, -19 lines 0 comments Download
M src/runtime.h View 1 chunk +3 lines, -0 lines 0 comments Download
M src/runtime.cc View 2 chunks +37 lines, -1 line 0 comments Download
M src/v8natives.js View 1 1 chunk +7 lines, -3 lines 0 comments Download
M test/cctest/test-api.cc View 1 5 chunks +108 lines, -6 lines 0 comments Download
M test/cctest/test-heap.cc View 3 chunks +5 lines, -5 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Mads Ager (chromium)
11 years, 6 months ago (2009-06-08 09:14:41 UTC) #1
Kasper Lund
LGTM. http://codereview.chromium.org/118374/diff/1/6 File src/v8natives.js (right): http://codereview.chromium.org/118374/diff/1/6#newcode119 Line 119: var this_is_global_receiver = this === global_receiver; I ...
11 years, 6 months ago (2009-06-08 09:22:40 UTC) #2
Mads Ager (chromium)
11 years, 6 months ago (2009-06-08 09:31:05 UTC) #3
http://codereview.chromium.org/118374/diff/1/6
File src/v8natives.js (right):

http://codereview.chromium.org/118374/diff/1/6#newcode119
Line 119: var this_is_global_receiver = this === global_receiver;
On 2009/06/08 09:22:40, Kasper Lund wrote:
> I would probably put parentheses around the boolean expression to make the
code
> a bit easier to read.

Done.

http://codereview.chromium.org/118374/diff/1/2
File test/cctest/test-api.cc (right):

http://codereview.chromium.org/118374/diff/1/2#newcode4636
Line 4636: context0->SetSecurityToken(v8_str("<security token>"));
On 2009/06/08 09:22:40, Kasper Lund wrote:
> This seems a bit fishy. Do you want the two contexts to share the same
security
> token? I guess so. In that case, I would make sure to use the same object by
> stuffing "<security token>" in a handle - instead of just piggybacking on the
> v8_str to return a symbol.

Thanks!  I don't need to set the security token for the contexts and I have
removed it.  I'm explicitly performing operations through the API with no
security checks.  (And even if I needed it, this style is indeed fishy.)

http://codereview.chromium.org/118374/diff/1/2#newcode6786
Line 6786: const v8::AccessorInfo& info) {
On 2009/06/08 09:22:40, Kasper Lund wrote:
> Line too long?

Done.

Powered by Google App Engine
This is Rietveld 408576698