From 12e4bdc2f295c451f5d98900ac5b4c2166a63123 Mon Sep 17 00:00:00 2001 From: Masaaki Goshima Date: Fri, 25 Jun 2021 22:55:00 +0900 Subject: [PATCH] Fix dump of opcode --- internal/encoder/opcode.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))