DevTools: replace (anonymous function) with synthetic function expression names |
|||
Issue descriptionBetween callback functions and the rise of arrow functions, we have more and more anonymous functions in javascript callstacks. They are provided without context, making it difficult to identify. Attached is a screenshot from pokedex.org ... 11 out of 25 call frames are anonymous. Let's explore if we can provide better inferred function names. It appears we can take a similar approach to Java's lambda expressions and denote the anonymous function as `parentScope.$1function` Question: I believe it's the parent scope that we'd adopt the synthetic name from. Is that the executioncontext, closure scope, or what?
,
Mar 5 2016
james long of mozilla mentioned spidermonkey has pretty good function name inference. I spent some time finding some good comparisons.. There's certainly some differences and a few cases where the names in Chrome are more complete. But there are plenty of examples where Chrome has no name and Firefox's inferred name is quite valuable. Attached are two comparisons.
,
Jul 29 2016
,
Oct 31
Bulk closing low-priority issues with no activity. Please re-file and refer to the closed issue if it's essential to fix. |
|||
►
Sign in to add a comment |
|||
Comment 1 by paulir...@chromium.org
, Feb 29 2016