From 2e3412d56b99cb6c4611a02ef2757cec1d2fa4f2 Mon Sep 17 00:00:00 2001 From: Eric Florenzano Date: Tue, 12 Nov 2019 16:07:50 -0800 Subject: [PATCH] Fix type conversion panic for host-provided funcs It was panicking because it's of type goFunction, not *goFunction as the line is checking for. --- exec/native_compile.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exec/native_compile.go b/exec/native_compile.go index 2706ca98..7fe4af9a 100644 --- a/exec/native_compile.go +++ b/exec/native_compile.go @@ -91,7 +91,7 @@ func (vm *VM) tryNativeCompile() error { } for i := range vm.funcs { - if _, isGoFunc := vm.funcs[i].(*goFunction); isGoFunc { + if _, isGoFunc := vm.funcs[i].(goFunction); isGoFunc { continue }