Bug 94533

Summary: [JSC] expose object inner properties to debugger
Product: WebKit Reporter: Peter Rybin <prybin>
Component: JavaScriptCoreAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: fpizlo, ggaren, mark.lam
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   

Description Peter Rybin 2012-08-20 15:00:39 PDT
In JavaScript several objects have hidden properties, namely: Boolean, Number and String have "[[PrimitiveValue]]" and bound function has "[[BoundThis]]", "[[TargetFunction]]" and "[[BoundArgs]]". While the language doesn't provide any explicit access to this properties, debugger should expose it as it might be a valuable piece of data.
In debug API there should be a way to access this inner context.
Comment 1 Peter Rybin 2012-08-20 15:00:57 PDT
Date object also has primitive value, but its type is unspecified and that's why this bug doesn't require it.
Comment 2 Peter Rybin 2012-10-10 10:35:00 PDT
Fully implemented by https://bugs.webkit.org/show_bug.cgi?id=94397
Comment 3 Timothy Hatcher 2012-10-10 12:37:21 PDT
Wrong, this is the [JSC] version of that bug. Note the FIXME in the patch attached to the bug you linked:

JSValue JSInjectedScriptHost::getInternalProperties(ExecState*) 
{ 
    // FIXME: implement this. https://bugs.webkit.org/show_bug.cgi?id=94533 
    return jsUndefined(); 
}
Comment 4 Peter Rybin 2012-10-11 10:08:48 PDT
Thanks a lot Timothy. I completely overlooked [JSC] marker and I took it for the real obsolete bug I used to have about it.

(In reply to comment #3)
> Wrong, this is the [JSC] version of that bug. Note the FIXME in the patch attached to the bug you linked:
> 
> JSValue JSInjectedScriptHost::getInternalProperties(ExecState*) 
> { 
>     // FIXME: implement this. https://bugs.webkit.org/show_bug.cgi?id=94533 
>     return jsUndefined(); 
> }