3 ms·
Indeed, however you have to be careful about the outer scope that the assignment is happening in (because of IE): http://kangax.github.com/nfe/#jscript-bugs htt
by mnemonik 16y ago
Indeed, however you have to be careful about the outer scope that the assignment is happening in (because of IE): http://kangax.github.com/nfe/#jscript-bugs http://kangax.github.com/nfe/#jscript-bugs
The other option, if you are on Webkit, is to assign something to the `displayName` property of a function or method. This is explained really well here: http://www.alertdebugging.com/2009/04/29/building-a-better-javascript-profiler-with-webkit/ http://www.alertdebugging.com/2009/04/29/building-a-better-j...
- solutionyogi 16y agoYeah, I should have added the warning about JScript bugs. At least the first two bugs listed on that page has been fixed in IE9.
- mnemonik 16y agoDo you have a link regarding IE9 fixing the NFE bugs? Googling "ie9 named function expression" didn't yield particularly good results. Thanks.