Skip to content

Comments

internal/runtime: handle Go 1.21 panic(nil) behavior#992

Open
gazerro wants to merge 1 commit intomainfrom
go1.21-panic
Open

internal/runtime: handle Go 1.21 panic(nil) behavior#992
gazerro wants to merge 1 commit intomainfrom
go1.21-panic

Conversation

@gazerro
Copy link
Member

@gazerro gazerro commented Feb 21, 2026

internal/runtime: handle Go 1.21 `panic(nil)` behavior

Starting from Go 1.21, calling panic with a nil value triggers a
run-time panic of type *runtime.PanicNilError.

This commit implements the same behavior in Scriggo.

For #952

Starting from Go 1.21, calling panic with a nil value triggers a
run-time panic of type *runtime.PanicNilError.

This commit implements the same behavior in Scriggo.

For #952
@gazerro gazerro requested a review from zapateo February 21, 2026 15:27
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