that’s a good point… though you can name arrow functions, and you would see that name on the stack trace, In most cases where arrow functions are sent as parameters, they are not named, and it does result in some ugly stack traces.

JS stack traces already have big issues, especially when you use build tools, and then what you ship has nothing to do with your local code, but that’s another story. Would be nice if there’s an easy way to handle this things with JS.

I’m an entrepreneur, developer, author, speaker, and doer of things. I write about JavaScript, Python, AI, and programming in general.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store