Skip to content

fix: Updated transformer to prevent instrumenting a non-existent method on a class#59

Merged
bizob2828 merged 3 commits intonodejs:mainfrom
bizob2828:main
Apr 7, 2026
Merged

fix: Updated transformer to prevent instrumenting a non-existent method on a class#59
bizob2828 merged 3 commits intonodejs:mainfrom
bizob2828:main

Conversation

@bizob2828
Copy link
Copy Markdown
Contributor

When the js rewrite occurred in #41 there was code to handle wrapping a method on the base class. This didn't take into account if the method actual existed so it wrote a wrapper that basically did nothing. This PR fixes it by skipping instrumenting when a methodName does not exist on a class or any sub classes

Copy link
Copy Markdown
Contributor

@jsumners-nr jsumners-nr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the boolean return. We just need to eliminate these unnecessary headers.

@bizob2828 bizob2828 merged commit 661eb1a into nodejs:main Apr 7, 2026
6 checks passed
bizob2828 added a commit to bizob2828/orchestrion-js that referenced this pull request Apr 9, 2026
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