RESOLVED WORKSFORME 48739
Web Inspector: [JSC] use constructor.name as a display name for objects that are non-DOM bindings..
https://bugs.webkit.org/show_bug.cgi?id=48739
Summary Web Inspector: [JSC] use constructor.name as a display name for objects that ...
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.