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

Issue 390001: Don't expose hidden properties object as an object property in debugger (Closed)

Created:
11 years, 1 month ago by yurys
Modified:
9 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

All hidden properties of an object are stored in a value of a regular property with empty name. This property may confuse user if returned among regular properties. It should not be exposed directly by ObjectMirror. Should we want an access to these properties from debugger we need to implement an explicit method for that. Current patch filters the hidden_symbol from property names returned to ObjectMirror. See http://crbug.com/26491 Committed: http://code.google.com/p/v8/source/detail?r=3265

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+86 lines, -0 lines) Patch
M src/runtime.cc View 1 1 chunk +19 lines, -0 lines 2 comments Download
M test/cctest/test-debug.cc View 1 chunk +67 lines, -0 lines 2 comments Download

Messages

Total messages: 4 (0 generated)
yurys
11 years, 1 month ago (2009-11-10 15:53:08 UTC) #1
Mads Ager (chromium)
LGTM http://codereview.chromium.org/390001/diff/2001/3002 File src/runtime.cc (right): http://codereview.chromium.org/390001/diff/2001/3002#newcode6026 Line 6026: Object* e = old_names->get(i); Rename 'e' to ...
11 years, 1 month ago (2009-11-10 16:04:08 UTC) #2
yurys
http://codereview.chromium.org/390001/diff/2001/3002 File src/runtime.cc (right): http://codereview.chromium.org/390001/diff/2001/3002#newcode6026 Line 6026: Object* e = old_names->get(i); On 2009/11/10 16:04:08, Mads ...
11 years, 1 month ago (2009-11-10 16:09:07 UTC) #3
Søren Thygesen Gjesse
11 years, 1 month ago (2009-11-11 08:55:34 UTC) #4
On 2009/11/10 16:09:07, Yury Semikhatsky wrote:
> http://codereview.chromium.org/390001/diff/2001/3002
> File src/runtime.cc (right):
> 
> http://codereview.chromium.org/390001/diff/2001/3002#newcode6026
> Line 6026: Object* e = old_names->get(i);
> On 2009/11/10 16:04:08, Mads Ager wrote:
> > Rename 'e' to 'name'?
> 
> Done.
> 
> http://codereview.chromium.org/390001/diff/2001/3001
> File test/cctest/test-debug.cc (right):
> 
> http://codereview.chromium.org/390001/diff/2001/3001#newcode3442
> Line 3442: // See http://crbug.com/26491
> On 2009/11/10 16:04:08, Mads Ager wrote:
> > Could you add a one line description before the bug link?
> 
> Done.

LGTM,

As the hidden properties are used by the embedder I don't think we would ever
want to expose the content of these in the JavaScript debugger, unless we add
some 'expose internals' targeted as debugging of the bindings at the JavaScript
level.

Powered by Google App Engine
This is Rietveld 408576698