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 gtTrace for zero-argument functions #6

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

zeniko
Copy link

@zeniko zeniko commented Mar 18, 2025

gtTrace checks the name of a method's first argument in order to determine whether it's 'self' (which is customarily used in object methods). It does however not check whether there are any arguments at all, causing gtTrace to fail for standalone functions without any arguments.

This fix adds a check on whether there are any arguments before accessing the name of the first argument.

…rmine whether it's 'self' (which is customarily used in object methods). It does however not check whether there are any arguments at all, causing gtTrace to fail for standalone functions without any arguments.

This fix adds a check on whether there are any arguments before
accessing the name of the first argument.
@feenk-cla-helper
Copy link

[This is an automated comment from the feenk Contributor License Agreement robot.]

Hello zeniko!

Thanks for your interest in making software development better. Please sign the feenk Contributor License Agreement so we can investigate merging in your work.

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.

1 participant