Alexander Pertsovsky created THRIFT-3835:
--------------------------------------------

             Summary: Thrift generates javascript code for node js with error
                 Key: THRIFT-3835
                 URL: https://issues.apache.org/jira/browse/THRIFT-3835
             Project: Thrift
          Issue Type: Bug
    Affects Versions: 0.9.3
            Reporter: Alexander Pertsovsky


Sample:
ApplicationStateInfo = module.exports.ApplicationStateInfo = function(args) {
  this.state = null;
  this.substate = null;
  if (args) {
    if (args.state !== undefined && args.state !== null) {
      this.state = args.state;
    }
    if (args.substate !== undefined && args.substate !== null) {
      this.substate = args.substate;
    }
  }
 module.exports.ApplicationStateInfo returns undefined => it cannot used with 
e.g. babel in node js




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to