From 2cf5aa7ad3b81903b1282bbf62de2cfa49d3e6b8 Mon Sep 17 00:00:00 2001 From: Ville Vesilehto Date: Fri, 13 Feb 2026 22:13:02 +0200 Subject: [PATCH] fix(fuzz): skip json unsupported type errors Add skip pattern for json.UnsupportedTypeError in fuzz test. The toJSON() builtin returns this error when given non-serializable types like functions (e.g. toJSON(score)). The existing skip list only covered json: unsupported value (for NaN/Inf) but not json: unsupported type (for func, chan, complex types). Signed-off-by: Ville Vesilehto --- test/fuzz/fuzz_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/test/fuzz/fuzz_test.go b/test/fuzz/fuzz_test.go index 93a043af..9616b1ea 100644 --- a/test/fuzz/fuzz_test.go +++ b/test/fuzz/fuzz_test.go @@ -36,6 +36,7 @@ func FuzzExpr(f *testing.F) { regexp.MustCompile(`unknown time zone`), regexp.MustCompile(`invalid location name`), regexp.MustCompile(`json: unsupported value`), + regexp.MustCompile(`json: unsupported type`), regexp.MustCompile(`json: cannot unmarshal .* into Go value of type .*`), regexp.MustCompile(`unexpected end of JSON input`), regexp.MustCompile(`memory budget exceeded`),