bool version_get(JSContext *cx, unsigned argc, Value *vp) {
  METHOD_HEADER(0)

  uint32_t version = 0;
  if (!HANDLE_RESULT(cx, xqd_req_version_get(request_handle(self), &version)))
    return false;

  args.rval().setInt32(version);
  return true;
}
bool version_get(JSContext *cx, unsigned argc, Value *vp) {
  METHOD_HEADER(0)

  uint32_t version = 0;
  if (!HANDLE_RESULT(cx, xqd_req_version_get(request_handle(self), &version)))
    return false;

  args.rval().setInt32(version);
  return true;
}