You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "John Vines (JIRA)" <ji...@apache.org> on 2014/04/25 00:01:15 UTC
[jira] [Updated] (THRIFT-2495) Node.js generator escaping
[ https://issues.apache.org/jira/browse/THRIFT-2495?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
John Vines updated THRIFT-2495:
-------------------------------
Attachment: test.thrift
I tested with my source with 0.9.0 and now 0.9.1 and I'm seeing the same behavior.
The important part of the java outputted is
{code}
this.quote = "\"";
this.escape = "\\";
{code}
while the respective js is
{code}
this.quote = '"';
this.escape = '\';
{code}
Between the two languages, it's inconsistent in how it treats escaping.
> Node.js generator escaping
> --------------------------
>
> Key: THRIFT-2495
> URL: https://issues.apache.org/jira/browse/THRIFT-2495
> Project: Thrift
> Issue Type: Bug
> Components: Node.js - Compiler
> Affects Versions: 0.9
> Reporter: John Vines
> Attachments: test.thrift
>
>
> In my .thrift file, I have an optional field with a default value of "\\". In java generated code it is properly set to "\\", but in the node.js code it results in "\" which results in an error.
--
This message was sent by Atlassian JIRA
(v6.2#6252)