forked from mirror/go-json
update debug vm
This commit is contained in:
parent
53590387e6
commit
a0bf49d201
|
@ -3659,8 +3659,13 @@ func Run(ctx *encoder.RuntimeContext, b []byte, codeSet *encoder.OpcodeSet, opt
|
||||||
code = code.NextField
|
code = code.NextField
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
iface := ptrToInterface(code, p)
|
||||||
|
if code.Nilcheck && encoder.IsNilForMarshaler(iface) {
|
||||||
|
code = code.NextField
|
||||||
|
break
|
||||||
|
}
|
||||||
b = append(b, code.Key...)
|
b = append(b, code.Key...)
|
||||||
bb, err := appendMarshalJSON(code, b, ptrToInterface(code, p), false)
|
bb, err := appendMarshalJSON(code, b, iface, false)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue