modified thrift.js so the skip function does not throw an exception