{"action":"created","issue":{"url":"https://api.github.com/repos/apache/thrift/issues/707","labels_url":"https://api.github.com/repos/apache/thrift/issues/707/labels{/name}","comments_url":"https://api.github.com/repos/apache/thrift/issues/707/comments","events_url":"https://api.github.com/repos/apache/thrift/issues/707/events","html_url":"https://github.com/apache/thrift/pull/707","id":118125935,"number":707,"title":"Fix generated Node JS code","user":{"login":"bracki","id":49786,"avatar_url":"https://avatars.githubusercontent.com/u/49786?v=3","gravatar_id":"","url":"https://api.github.com/users/bracki","html_url":"https://github.com/bracki","followers_url":"https://api.github.com/users/bracki/followers","following_url":"https://api.github.com/users/bracki/following{/other_user}","gists_url":"https://api.github.com/users/bracki/gists{/gist_id}","starred_url":"https://api.github.com/users/bracki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bracki/subscriptions","organizations_url":"https://api.github.com/users/bracki/orgs","repos_url":"https://api.github.com/users/bracki/repos","events_url":"https://api.github.com/users/bracki/events{/privacy}","received_events_url":"https://api.github.com/users/bracki/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-11-20T21:07:08Z","updated_at":"2015-12-03T15:41:45Z","closed_at":"2015-12-03T15:39:49Z","pull_request":{"url":"https://api.github.com/repos/apache/thrift/pulls/707","html_url":"https://github.com/apache/thrift/pull/707","diff_url":"https://github.com/apache/thrift/pull/707.diff","patch_url":"https://github.com/apache/thrift/pull/707.patch"},"body":"As reported in https://issues.apache.org/jira/browse/THRIFT-1840 and https://issues.apache.org/jira/browse/THRIFT-2527 the generated JS code pollutes the global namespace because it lacks `var` keywords.\r\n\r\nThis PR adds the `var` keyword where appropriate.\r\nIt also appends missing `;`, thus making tools like [jshint](http://jshint.com/) et. al. happier."},"comment":{"url":"https://api.github.com/repos/apache/thrift/issues/comments/161680503","html_url":"https://github.com/apache/thrift/pull/707#issuecomment-161680503","issue_url":"https://api.github.com/repos/apache/thrift/issues/707","id":161680503,"user":{"login":"nsuke","id":3064114,"avatar_url":"https://avatars.githubusercontent.com/u/3064114?v=3","gravatar_id":"","url":"https://api.github.com/users/nsuke","html_url":"https://github.com/nsuke","followers_url":"https://api.github.com/users/nsuke/followers","following_url":"https://api.github.com/users/nsuke/following{/other_user}","gists_url":"https://api.github.com/users/nsuke/gists{/gist_id}","starred_url":"https://api.github.com/users/nsuke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nsuke/subscriptions","organizations_url":"https://api.github.com/users/nsuke/orgs","repos_url":"https://api.github.com/users/nsuke/repos","events_url":"https://api.github.com/users/nsuke/events{/privacy}","received_events_url":"https://api.github.com/users/nsuke/received_events","type":"User","site_admin":false},"created_at":"2015-12-03T15:41:45Z","updated_at":"2015-12-03T15:41:45Z","body":"Committed, thank you folks !"}}