diff --git a/internal/encoder/opcode.go b/internal/encoder/opcode.go index e2e1323..37dd3f5 100644 --- a/internal/encoder/opcode.go +++ b/internal/encoder/opcode.go @@ -553,7 +553,7 @@ func (c *Opcode) dumpValue(code *Opcode) string { func (c *Opcode) Dump() string { codes := []string{} - for code := c; code.Op != OpEnd; { + for code := c; code.Op != OpEnd && code.Op != OpInterfaceEnd; { switch code.Op.CodeType() { case CodeSliceHead: codes = append(codes, c.dumpHead(code))