Updated Branches:
  refs/heads/master 175a69410 -> 0049ec72e

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.


Project: http://git-wip-us.apache.org/repos/asf/thrift/repo
Commit: http://git-wip-us.apache.org/repos/asf/thrift/commit/0049ec72
Tree: http://git-wip-us.apache.org/repos/asf/thrift/tree/0049ec72
Diff: http://git-wip-us.apache.org/repos/asf/thrift/diff/0049ec72

Branch: refs/heads/master
Commit: 0049ec72ed81499a4c287a8aa28faa19efad3c3a
Parents: 175a694
Author: Jake Farrell <[email protected]>
Authored: Thu May 30 23:42:56 2013 -0400
Committer: Jake Farrell <[email protected]>
Committed: Thu May 30 23:42:56 2013 -0400

----------------------------------------------------------------------
 compiler/cpp/src/generate/t_js_generator.cc |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/thrift/blob/0049ec72/compiler/cpp/src/generate/t_js_generator.cc
----------------------------------------------------------------------
diff --git a/compiler/cpp/src/generate/t_js_generator.cc 
b/compiler/cpp/src/generate/t_js_generator.cc
index bff6423..e27f5de 100644
--- a/compiler/cpp/src/generate/t_js_generator.cc
+++ b/compiler/cpp/src/generate/t_js_generator.cc
@@ -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;

Reply via email to