Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-3835

Thrift generates javascript code for node js with error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 0.9.3
    • None
    • Node.js - Compiler
    • None

    Description

      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

      Attachments

        Issue Links

          Activity

            People

              bcg Benjamin Gould
              apertsovsky Alexander Pertsovsky
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: