include type info when reporting missing fields

Store character primitives as a uint16 integer with a separate char field.
This commit is contained in:
adelphes
2017-01-29 19:06:32 +00:00
parent 88c20d6470
commit ec38695bcc
2 changed files with 8 additions and 4 deletions

View File

@@ -169,7 +169,7 @@ function _JDWP() {
return i<32768?i:i-65536;
},
decodeChar: function(o) {
return String.fromCharCode((o.data[o.idx++]<<8)+o.data[o.idx++]);
return (o.data[o.idx++]<<8)+o.data[o.idx++]; // uint16
},
decodeBoolean: function(o) {
return o.data[o.idx++] != 0;