fix: avoid infinite recursion in genFunctionWrapper()

This commit is contained in:
Marc Vertes
2020-03-17 18:02:05 +01:00
committed by GitHub
parent 9b07e73b5e
commit 953b122e67
4 changed files with 53 additions and 15 deletions

View File

@@ -482,7 +482,6 @@ func genFunctionWrapper(n *node) func(*frame) reflect.Value {
if def, ok = n.val.(*node); !ok {
return genValueAsFunctionWrapper(n)
}
setExec(def.child[3].start)
start := def.child[3].start
numRet := len(def.typ.ret)
var rcvr func(*frame) reflect.Value