codegl / tracegl

traceGL support repository
84 stars 5 forks source link

Feature Request: support displayName property on methods #108

Open unwiredben opened 11 years ago

unwiredben commented 11 years ago

Several JS debuggers, including FireBug and the WebKit Inspector (but not Chrome) will use a displayName property on a function instead of the implied name. For Enyo JS, we have a lot of "super" calls using anonymous functions that we decorate with displayName fields during class creation. This show up as anons in TraceGL, but since the data is there in the function's displayName field, it would be great to log that if you can't compute your own name.