summaryrefslogtreecommitdiff
path: root/lib/js
diff options
context:
space:
mode:
authorJames E. King III <jking@apache.org>2019-02-14 16:46:38 -0500
committerGitHub <noreply@github.com>2019-02-14 16:46:38 -0500
commitdbc1f8def5018ce5d85d38b9875c6c6b6b424478 (patch)
tree0011127f2edd9221f973eb157438bbd11c0b74d2 /lib/js
parent3ca88065dfdb24c5bad6fbd1e3a7e01812628d3b (diff)
downloadthrift-dbc1f8def5018ce5d85d38b9875c6c6b6b424478.tar.gz
THRIFT-4024, THRIFT-4783: throw when skipping invalid type (#1742)
* THRIFT-4024: make c_glib throw on unsupported type when skipping * THRIFT-4783: throw on invalid skip (py) * THRIFT-4024: make cpp throw on unsupported type when skipping * THRIFT-4024: uniform skip behavior on unsupported type
Diffstat (limited to 'lib/js')
-rw-r--r--lib/js/src/thrift.js3
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/js/src/thrift.js b/lib/js/src/thrift.js
index 0b4a29241..21a3d65fc 100644
--- a/lib/js/src/thrift.js
+++ b/lib/js/src/thrift.js
@@ -1434,9 +1434,6 @@ Thrift.Protocol.prototype = {
skip: function(type) {
var ret, i;
switch (type) {
- case Thrift.Type.STOP:
- return null;
-
case Thrift.Type.BOOL:
return this.readBool();