Thrift-1402:Generated Y_types.js does not require() X_types.js when an include in...
authorJake Farrell <jfarrell@apache.org>
Fri, 31 May 2013 03:42:56 +0000 (23:42 -0400)
committerJake Farrell <jfarrell@apache.org>
Fri, 31 May 2013 03:42:56 +0000 (23:42 -0400)
Client: js
Patch: Patrick Costello

Adds render_includes() to js header.

compiler/cpp/src/generate/t_js_generator.cc

index bff6423..e27f5de 100644 (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;