You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Jens Geyer (JIRA)" <ji...@apache.org> on 2017/08/08 20:10:00 UTC

[jira] [Updated] (THRIFT-4277) Cannot get any data value using node.js

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

Jens Geyer updated THRIFT-4277:
-------------------------------
    Description: 
When using Thift to generate js code, all property value are `undefined`, because of an extra `.value`. This bug makes Node.js cannot use Thrift anymore.

generated code:
{{this.groupId = input.readString().value // got undefined}}

should be
{{this.groupId = input.readString() // works fine}}

  was:
When using Thift to generate js code, all property value are `undefined`, because of an extra `.value`. This bug makes Node.js cannot use Thrift anymore.

generated code:
this.groupId = input.readString().value // got undefined

should be
this.groupId = input.readString() // works fine


> Cannot get any data value using node.js
> ---------------------------------------
>
>                 Key: THRIFT-4277
>                 URL: https://issues.apache.org/jira/browse/THRIFT-4277
>             Project: Thrift
>          Issue Type: Bug
>          Components: Node.js - Compiler
>    Affects Versions: 0.10.0
>            Reporter: TianYI Wen
>
> When using Thift to generate js code, all property value are `undefined`, because of an extra `.value`. This bug makes Node.js cannot use Thrift anymore.
> generated code:
> {{this.groupId = input.readString().value // got undefined}}
> should be
> {{this.groupId = input.readString() // works fine}}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)