diff options
Diffstat (limited to 'vm0/func.go')
| -rw-r--r-- | vm0/func.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/vm0/func.go b/vm0/func.go index 6c95383..6976530 100644 --- a/vm0/func.go +++ b/vm0/func.go @@ -60,7 +60,9 @@ func (i *Interp) declareFunc(r *parser.Node, scope string) { for _, arg := range args { i.push(arg.Interface()) } - i.Run(r.Child[len(r.Child)-1], fscope) + if _, err := i.Run(r.Child[len(r.Child)-1], fscope); err != nil { + panic(err) + } b := len(i.stack) - len(out) for j := range out { res = append(res, reflect.ValueOf(i.stack[b+j])) |
