Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #40: prefer functions' runtime name, fallback to callsite name, w/option to disable fallback #41

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

cspotcode
Copy link
Owner

@cspotcode cspotcode commented May 8, 2022

Fix #40

This uses the function's runtime name in stack traces, and falls-back to the callsite name only when there is no runtime name. Also, the fallback can be disabled with an option.

We never attempt to map the "enclosing" position's name, because that can give a completely semantically incorrect answer: it can give the name of a different function entirely.

The callsite fallback is still imperfect, but at least the callsite name is one of the names used to refer to the function in sources, even if it's not the function's declared name.

@cspotcode cspotcode changed the title Fix #40: get function name from enclosing position, fallback to runtime name, then finally to callsite name Fix #40: prefer functions' runtime name, fallback to callsite name, w/option to disable fallback May 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix method for getting function name for stack frames
1 participant