mirror of
https://github.com/valitydev/thrift.git
synced 2024-11-07 10:48:51 +00:00
fix js list<map> support
This commit is contained in:
parent
9be413fca4
commit
5d6378f61e
@ -1153,9 +1153,15 @@ Thrift.Protocol.prototype = {
|
||||
*/
|
||||
readMapBegin: function() {
|
||||
var map = this.rstack.pop();
|
||||
var first = map.shift();
|
||||
if (first instanceof Array) {
|
||||
this.rstack.push(map);
|
||||
map = first;
|
||||
first = map.shift();
|
||||
}
|
||||
|
||||
var r = {};
|
||||
r.ktype = Thrift.Protocol.RType[map.shift()];
|
||||
r.ktype = Thrift.Protocol.RType[first];
|
||||
r.vtype = Thrift.Protocol.RType[map.shift()];
|
||||
r.size = map.shift();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user