Bug 48739

Summary: Web Inspector: [JSC] use constructor.name as a display name for objects that are non-DOM bindings..
Product: WebKit Reporter: Pavel Feldman <pfeldman>
Component: Web Inspector (Deprecated)Assignee: Nobody <webkit-unassigned>
Status: RESOLVED WORKSFORME    
Severity: Normal CC: apavlov, bweinstein, joepeck, keishi, kpiascik, loislo, pfeldman, pmuellr, rik, yurys
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   

Pavel Feldman
Reported 2010-10-31 15:14:15 PDT
Evaluating function FooBar() {}; var fooBar = new FooBar(); fooBar; in console gives > Object should give > FooBar Problem is that InjectedScript._className is wrong. It uses Object.prototype.toString unconditionally for JSC, whereas it could use constructor.name for non-DOM binding objects.
Attachments
Konrad Piascik
Comment 1 2012-06-07 12:21:13 PDT
In safari typing: function FooBar() {}; var fooBar = new FooBar(); fooBar; in the console I get FooBar instead of Object.
Note You need to log in before you can comment on or make changes to this bug.