diff --git a/interp/compiler.go b/interp/compiler.go index f0a09686..37faaae5 100644 --- a/interp/compiler.go +++ b/interp/compiler.go @@ -49,7 +49,10 @@ func (inst *instruction) String() string { operands[i] = op.String() } - name := instructionNameMap[inst.opcode] + name := "" + if int(inst.opcode) < len(instructionNameMap) { + name = instructionNameMap[inst.opcode] + } if name == "" { name = "" }