THRIFT-2720 nodejs - Error with enum generation

This commit is contained in:
Roger Meier 2014-10-09 02:11:14 +02:00
parent 25023b16eb
commit a9ddab5fa7

View File

@ -64,6 +64,9 @@ class t_js_generator : public t_oop_generator {
iter = parsed_options.find("ts"); iter = parsed_options.find("ts");
gen_ts_ = (iter != parsed_options.end()); gen_ts_ = (iter != parsed_options.end());
} }
else {
gen_ts_ = false;
}
if (gen_node_ && gen_jquery_) { if (gen_node_ && gen_jquery_) {
throw "Invalid switch: [-gen js:node,jquery] options not compatible, try: [-gen js:node -gen js:jquery]"; throw "Invalid switch: [-gen js:node,jquery] options not compatible, try: [-gen js:node -gen js:jquery]";