update debug vm

This commit is contained in:
IncSW 2021-04-14 20:49:10 +03:00
parent 53590387e6
commit a0bf49d201
No known key found for this signature in database
GPG Key ID: 89876FA64BFB2D57
1 changed files with 6 additions and 1 deletions

View File

@ -3659,8 +3659,13 @@ func Run(ctx *encoder.RuntimeContext, b []byte, codeSet *encoder.OpcodeSet, opt
code = code.NextField
break
}
iface := ptrToInterface(code, p)
if code.Nilcheck && encoder.IsNilForMarshaler(iface) {
code = code.NextField
break
}
b = append(b, code.Key...)
bb, err := appendMarshalJSON(code, b, ptrToInterface(code, p), false)
bb, err := appendMarshalJSON(code, b, iface, false)
if err != nil {
return nil, err
}