From 2b794497cbc03e8f85f2785efd3fc279bdea378e Mon Sep 17 00:00:00 2001 From: Nevkontakte Date: Sun, 31 Jul 2022 14:04:28 +0100 Subject: [PATCH] Fix generics-related error in net/netip fuzz tests. One of the helper functions requires generics to work correctly. Until they are properly supported we have to stub it out. Generics support is tracked in https://github.com/gopherjs/gopherjs/issues/1013. --- compiler/natives/src/net/netip/fuzz_test.go | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 compiler/natives/src/net/netip/fuzz_test.go diff --git a/compiler/natives/src/net/netip/fuzz_test.go b/compiler/natives/src/net/netip/fuzz_test.go new file mode 100644 index 000000000..574201d2d --- /dev/null +++ b/compiler/natives/src/net/netip/fuzz_test.go @@ -0,0 +1,10 @@ +//go:build js + +package netip_test + +import "testing" + +func checkStringParseRoundTrip(t *testing.T, x interface{}, parse interface{}) { + // TODO(nevkontakte): This function requires generics to function. + // Re-enable after https://github.com/gopherjs/gopherjs/issues/1013 is resolved. +}