aboutsummaryrefslogtreecommitdiffstats
path: root/vm/vm_debug.go
diff options
context:
space:
mode:
Diffstat (limited to 'vm/vm_debug.go')
-rw-r--r--vm/vm_debug.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/vm/vm_debug.go b/vm/vm_debug.go
index df5d7e346..ce7a29f99 100644
--- a/vm/vm_debug.go
+++ b/vm/vm_debug.go
@@ -83,6 +83,8 @@ func (self *DebugVm) RunClosure(closure *Closure) (ret []byte, err error) {
nop := OpCode(closure.GetOp(p))
if !(nop == JUMPDEST || destinations[from.Int64()] != nil) {
panic(fmt.Sprintf("JUMP missed JUMPDEST (%v) %v", nop, p))
+ } else if nop == JUMP || nop == JUMPI {
+ panic(fmt.Sprintf("not allowed to JUMP(I) in to JUMP"))
}
pc = to