Skip to content

fix gtTrace for zero-argument functions - #6

Merged
JurajKubelka merged 1 commit into
feenkcom:mainfrom
zeniko:gtTrace-fix
Sep 25, 2026
Merged

JurajKubelka merged 1 commit into
feenkcom:mainfrom
zeniko:gtTrace-fix

Conversation

@zeniko

@zeniko zeniko commented Mar 18, 2025

Copy link
Copy Markdown

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
Copy Markdown

[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.

@CLAassistant

CLAassistant commented Apr 20, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@JurajKubelka
JurajKubelka merged commit 880e009 into feenkcom:main Sep 25, 2026
@JurajKubelka

Copy link
Copy Markdown
Member

@zeniko: Thank you for the contribution.

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.

3 participants