{"action":"created","issue":{"url":"https://api.github.com/repos/brettlangdon/jsnice/issues/4","repository_url":"https://api.github.com/repos/brettlangdon/jsnice","labels_url":"https://api.github.com/repos/brettlangdon/jsnice/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/brettlangdon/jsnice/issues/4/comments","events_url":"https://api.github.com/repos/brettlangdon/jsnice/issues/4/events","html_url":"https://github.com/brettlangdon/jsnice/issues/4","id":147573524,"number":4,"title":"Weird output","user":{"login":"bvasiles","id":1917728,"avatar_url":"https://avatars.githubusercontent.com/u/1917728?v=3","gravatar_id":"","url":"https://api.github.com/users/bvasiles","html_url":"https://github.com/bvasiles","followers_url":"https://api.github.com/users/bvasiles/followers","following_url":"https://api.github.com/users/bvasiles/following{/other_user}","gists_url":"https://api.github.com/users/bvasiles/gists{/gist_id}","starred_url":"https://api.github.com/users/bvasiles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bvasiles/subscriptions","organizations_url":"https://api.github.com/users/bvasiles/orgs","repos_url":"https://api.github.com/users/bvasiles/repos","events_url":"https://api.github.com/users/bvasiles/events{/privacy}","received_events_url":"https://api.github.com/users/bvasiles/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-11T22:26:47Z","updated_at":"2016-04-12T15:56:44Z","closed_at":"2016-04-12T15:56:44Z","body":"I'm running `jsnice --no-types` with the code in the example from http://jsnice.org as input:\r\n\r\n```\r\nfunction chunkData(e, t) {\r\n  var n = [];\r\n  var r = e.length;\r\n  var i = 0;\r\n  for (; i < r; i += t) {\r\n    if (i + t < r) {\r\n      n.push(e.substring(i, i + t));\r\n    } else {\r\n      n.push(e.substring(i, r));\r\n    }\r\n  }\r\n  return n;\r\n}\r\n```\r\n\r\nIt returns:\r\n\r\n```\r\nfunction chunkData(local$$2, local$$3) {\r\n  var local$$6 = [];\r\n  var local$$10 = local$$2.length;\r\n  var local$$13 = 0;\r\n  for (;local$$13 < local$$10;local$$13 += local$$3) {\r\n    if (local$$13 + local$$3 < local$$10) {\r\n      local$$6.push(local$$2.substring(local$$13, local$$13 + local$$3));\r\n    } else {\r\n      local$$6.push(local$$2.substring(local$$13, local$$10));\r\n    }\r\n  }\r\n  return local$$6;\r\n}\r\n;\r\n```"},"comment":{"url":"https://api.github.com/repos/brettlangdon/jsnice/issues/comments/208978684","html_url":"https://github.com/brettlangdon/jsnice/issues/4#issuecomment-208978684","issue_url":"https://api.github.com/repos/brettlangdon/jsnice/issues/4","id":208978684,"user":{"login":"brettlangdon","id":1320353,"avatar_url":"https://avatars.githubusercontent.com/u/1320353?v=3","gravatar_id":"","url":"https://api.github.com/users/brettlangdon","html_url":"https://github.com/brettlangdon","followers_url":"https://api.github.com/users/brettlangdon/followers","following_url":"https://api.github.com/users/brettlangdon/following{/other_user}","gists_url":"https://api.github.com/users/brettlangdon/gists{/gist_id}","starred_url":"https://api.github.com/users/brettlangdon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brettlangdon/subscriptions","organizations_url":"https://api.github.com/users/brettlangdon/orgs","repos_url":"https://api.github.com/users/brettlangdon/repos","events_url":"https://api.github.com/users/brettlangdon/events{/privacy}","received_events_url":"https://api.github.com/users/brettlangdon/received_events","type":"User","site_admin":false},"created_at":"2016-04-12T15:56:44Z","updated_at":"2016-04-12T15:56:44Z","body":"@bvasiles please update to `v0.2.0`, this is resolved.\r\n\r\nThe problem was that jsnice.org takes an option `suggest` which will create generic local variables like in your example. This option was enabled by default in this library. I have updated the code to make it be disabled by default and now expose a command line option to enable it."}}