good morning!!!!

Skip to content
Snippets Groups Projects
Commit 99d5769c authored by Jeffrey Wilcke's avatar Jeffrey Wilcke
Browse files

There'll be jumping in to jumps

parent 1b1fa049
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment