diff --git a/pkg/vm/vm.go b/pkg/vm/vm.go index 92f9db474..ef8c41351 100644 --- a/pkg/vm/vm.go +++ b/pkg/vm/vm.go @@ -1754,6 +1754,7 @@ func (v *VM) handleException() { v.istack = v.istack[:len(v.istack)-1] v.unloadContext(ctx) } + v.estack = ictx.sc.estack if ectx.State == eTry && ectx.HasCatch() { ectx.State = eCatch v.estack.PushItem(v.uncaughtException)