forked from mirror/go-json
Fix dump of opcode
This commit is contained in:
parent
f93d82dee6
commit
12e4bdc2f2
|
@ -553,7 +553,7 @@ func (c *Opcode) dumpValue(code *Opcode) string {
|
||||||
|
|
||||||
func (c *Opcode) Dump() string {
|
func (c *Opcode) Dump() string {
|
||||||
codes := []string{}
|
codes := []string{}
|
||||||
for code := c; code.Op != OpEnd; {
|
for code := c; code.Op != OpEnd && code.Op != OpInterfaceEnd; {
|
||||||
switch code.Op.CodeType() {
|
switch code.Op.CodeType() {
|
||||||
case CodeSliceHead:
|
case CodeSliceHead:
|
||||||
codes = append(codes, c.dumpHead(code))
|
codes = append(codes, c.dumpHead(code))
|
||||||
|
|
Loading…
Reference in New Issue