Thrift-1402:Generated Y_types.js does not require() X_types.js when an include in the IDL file was used

Client: js
Patch: Patrick Costello

Adds render_includes() to js header.
This commit is contained in:
Jake Farrell 2013-05-30 23:42:56 -04:00
parent 175a694109
commit 0049ec72ed

View File

@ -270,7 +270,8 @@ void t_js_generator::init_generator() {
// Print header
f_types_ <<
autogen_comment() <<
js_includes() << endl;
js_includes() << endl <<
render_includes() << endl;
if (gen_node_) {
f_types_ << "var ttypes = module.exports = {};" << endl;