Fix dump of opcode

This commit is contained in:
Masaaki Goshima 2021-06-25 22:55:00 +09:00
parent f93d82dee6
commit 12e4bdc2f2
1 changed files with 1 additions and 1 deletions

View File

@ -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))