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

Sylwester Lachiewicz resolved THRIFT-3410.
------------------------------------------
    Resolution: Fixed

The JS generator emits a 'use strict' directive in generated files 
([compiler/cpp/src/thrift/generate/t_js_generator.cc|https://github.com/apache/thrift/blob/master/compiler/cpp/src/thrift/generate/t_js_generator.cc]).
 Resolving as Fixed.

> Support for 'use strict' in generated javascript code
> -----------------------------------------------------
>
>                 Key: THRIFT-3410
>                 URL: https://issues.apache.org/jira/browse/THRIFT-3410
>             Project: Thrift
>          Issue Type: Improvement
>          Components: JavaScript - Compiler
>    Affects Versions: 0.9.3
>            Reporter: Mateus Chagas Sousa
>            Priority: Minor
>              Labels: easyfix, javascript, js, node.js, strict, var
>
> Generated structs in javascript aren't compatible with strict mode cause they 
> are declared as global variables instead of being declared using the _var_ 
> keyword.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to