RESOLVED WORKSFORME 26760
Function .displayName doesn't resolve properly using getter
https://bugs.webkit.org/show_bug.cgi?id=26760
Summary Function .displayName doesn't resolve properly using getter
William J. Edney
Reported 2009-06-26 13:45:25 PDT
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
Attachments
William J. Edney
Comment 1 2009-06-26 14:00:38 PDT
Gonna add Francisco :-). Hope you don't mind ;-). Thanks for your work here. It is much appreciated. Cheers, - Bill
Note You need to log in before you can comment on or make changes to this bug.