Skip to content
This repository was archived by the owner on May 11, 2020. It is now read-only.

Commit 01d3d33

Browse files
meyer9sbinet
authored andcommitted
exec: fixes panic on terminate for return values
1 parent 3fd3653 commit 01d3d33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exec/vm.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ outer:
452452
}
453453
}
454454

455-
if compiled.returns {
455+
if compiled.returns && !vm.abort {
456456
return vm.ctx.stack[len(vm.ctx.stack)-1]
457457
}
458458
return 0

0 commit comments

Comments
 (0)