THRIFT-815: fix for broken list testcase
authorT Jake Luciani <jake@apache.org>
Fri, 6 Aug 2010 02:37:45 +0000 (02:37 +0000)
committerT Jake Luciani <jake@apache.org>
Fri, 6 Aug 2010 02:37:45 +0000 (02:37 +0000)
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@982853 13f79535-47bb-0310-9956-ffa450edef68

lib/js/thrift.js

index 04a34d1..f048dbf 100644 (file)
@@ -559,7 +559,7 @@ Thrift.Protocol.prototype = {
 
     readMapBegin : function(keyType,valType,size){
         
-        var map = this.rstack[this.rstack.length-1]
+        var map = this.rstack.pop()
         
         var r = {};
         r["ktype"] = Thrift.Protocol.RType[map.shift()]