commit | 50862915ccfd5512e9982d2b75a3df99c5e7cdd3 | [log] [tgz] |
---|---|---|
author | Philip Frank <ich@philipfrank.de> | Wed Mar 07 21:21:30 2018 +0100 |
committer | James E. King III <jking@apache.org> | Fri Mar 09 17:59:21 2018 -0500 |
tree | b8cbf951c78126e511e6bca5f906ca949c463a63 | |
parent | 138da2049020fe66e51f8adb456cdd2bd8d5e502 [diff] [blame] |
THRIFT-4024: Skip() throws TProtocolException.INVALID_DATA on unknown data types Client: js This closes #1503
diff --git a/lib/js/src/thrift.js b/lib/js/src/thrift.js index eeae873..2b385a3 100644 --- a/lib/js/src/thrift.js +++ b/lib/js/src/thrift.js
@@ -1438,6 +1438,9 @@ } this.readListEnd(); return null; + + default: + throw new Thrift.TProtocolException(Thrift.TProtocolExceptionType.INVALID_DATA); } } };