[Webkit-unassigned] [Bug 26760] New: Function .displayName doesn't resolve properly using getter

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jun 26 13:45:25 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=26760

           Summary: Function .displayName doesn't resolve properly using
                    getter
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Macintosh
        OS/Version: Mac OS X 10.5
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: Web Inspector
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: bedney at technicalpursuit.com


All -

I'm trying to return a computed value for '.displayName' for use in the
debugger/profiler. Since it was determined that displayName would be modeled as
a property instead of a function (i.e. it could've been .displayName()), I
tried to define a getter for it on Function.prototype:

Function.prototype.__defineGetter__(
        'displayName',
        function()
        {
            <Code to compute and return String containing displayName>
        });

Unfortunately this completely corrupts the capability such that the debugger or
profiler won't actually show any Function's computed name or even a
'.displayName' property slot that has been added to a specific Function
instance.

Any further assistance I can be to help fix this problem, I'll be happy to
help. I'm not a C/C++ coder however (well, its been a *really* long time :-) ).

Cheers,

- Bill


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list