Stack parsers use both `?` and `<anonymous>` to denote anonymous functions
See original GitHub issueChrome/v8 stack frames use ?
to denote anonymous functions but we also use <anonymous>
in a few places.
Issue Analytics
- State:
- Created a year ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
Why do you need to invoke an anonymous function on the ...
Those are two completely seperate anonymous functions. You have to invoke an anonymous function immediately because it has no name and can't be...
Read more >JavaScript Anonymous Functions - GeeksforGeeks
Anonymous Function is a function that does not have any name associated with it. Normally we use the function keyword before the function...
Read more >Is there a common set of best practices for passing ...
Well, sure. Anonymous functions are used because we are too lazy to write an own stragety-pattern-like class for each single anonymous function.
Read more >Lambda expressions and anonymous functions | Microsoft Learn
In both cases, you can use the same lambda expression to specify the parameter value. That makes the two Select calls to look...
Read more >the different ways of declaring a function + 5 best practices
A function can be declared using a function expression. It is declared quite differently from the general syntax because it uses a variable...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Historical reasons. It was called
<anonymous>
(the same value as anonymous URLs/files in some old browsers) since raven SDK, and we kept it like that.?
comes directly from Tracekit, which was also not changed since the old SDK, as the grouping strategy back then did not group them together afair. Changing this would cause some new issues to pop up.Now, this will not affect any grouping (at least for one version of it), due to those frames being skipped, see: https://github.com/getsentry/sentry/blob/46d9c2aa672b8abe2e26e52c60e9ffc32eba9c23/src/sentry/grouping/strategies/newstyle.py#L394-L398
Also original references: https://github.com/getsentry/sentry-javascript/blob/7b664ff3a828fe59e32ccc182d5b4bb449dc9402/packages/raven-js/src/raven.js#L1122 https://github.com/getsentry/sentry-javascript/blob/7b664ff3a828fe59e32ccc182d5b4bb449dc9402/packages/raven-js/vendor/TraceKit/tracekit.js#L29
How about we just backlog for the next major bump then? I don’t mind tabling this patch until then since we treat it identically for grouping strategies.