From: T Jake Luciani Date: Fri, 6 Aug 2010 02:37:45 +0000 (+0000) Subject: THRIFT-815: fix for broken list testcase X-Git-Tag: 0.4.0~25 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=b22b51eea25698e2eb1319850835567dbfb28278;p=common%2Fthrift.git THRIFT-815: fix for broken list testcase git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@982853 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/lib/js/thrift.js b/lib/js/thrift.js index 04a34d1d..f048dbff 100644 --- a/lib/js/thrift.js +++ b/lib/js/thrift.js @@ -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()]