Skip to content

fix: Fixed tracePromise to handle returning result when function being wrapped is not a promise - #46

Merged
bizob2828 merged 1 commit into
nodejs:mainfrom
bizob2828:fix-trace-promise
Mar 26, 2026
Merged

fix: Fixed tracePromise to handle returning result when function being wrapped is not a promise#46
bizob2828 merged 1 commit into
nodejs:mainfrom
bizob2828:fix-trace-promise

Conversation

@bizob2828

Copy link
Copy Markdown
Contributor

@Qard observed tracePromise was incorrectly handling when the function being wrapped lacked a thenable. This PR fixes that. I also updated the preamble to return the result in the end event when it is applicable.

@bizob2828
bizob2828 merged commit e864993 into nodejs:main Mar 26, 2026
6 checks passed
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