Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
0.9
Description
When compiling for NodeJS, the compiler creates globally scoped variables which is considered a bad practice as it can create unintended consequences. It also causes many testing frameworks to fail.
the output looks something like this:
User = module.exports.User = function(args) {
when it should be
var User = module.exports.User = function(args) {
Attachments
Attachments
Issue Links
- is part of
-
THRIFT-2527 Apache Thrift IDL Compiler code generated for Node.js should be jshint clean
- Closed