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

Remove special handling of panic(nil) #985

Merged
merged 1 commit into from
Jan 16, 2025

Conversation

nr-swilloughby
Copy link
Contributor

Fixes issue 975 by removing the special handling that was wrapped around instrumented functions that experience a panic(nil). Previously the code sought to keep the pre-Go-1.21 behavior of not propagating nil panics, but a better approach is to not treat them any differently than other panics.

@iamemilio
Copy link
Contributor

I like that the new test cover's checking that a panic still occurs in the environment. LTGM

@iamemilio iamemilio merged commit f08f9a1 into newrelic:develop Jan 16, 2025
54 checks passed
@nr-swilloughby nr-swilloughby deleted the panic_nil branch January 16, 2025 17:14
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.

2 participants