You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "James E. King, III (JIRA)" <ji...@apache.org> on 2016/06/17 03:24:05 UTC

[jira] [Updated] (THRIFT-3835) Thrift generates javascript code for node js with error

     [ https://issues.apache.org/jira/browse/THRIFT-3835?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James E. King, III updated THRIFT-3835:
---------------------------------------
    Component/s: Node.js - Compiler

> 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
>          Components: Node.js - Compiler
>    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)