{"action":"created","issue":{"url":"https://api.github.com/repos/mishoo/UglifyJS2/issues/1166","repository_url":"https://api.github.com/repos/mishoo/UglifyJS2","labels_url":"https://api.github.com/repos/mishoo/UglifyJS2/issues/1166/labels{/name}","comments_url":"https://api.github.com/repos/mishoo/UglifyJS2/issues/1166/comments","events_url":"https://api.github.com/repos/mishoo/UglifyJS2/issues/1166/events","html_url":"https://github.com/mishoo/UglifyJS2/issues/1166","id":162002571,"number":1166,"title":"[ES6] Identifiers defined with 'let' not being reserved.","user":{"login":"david-r-edgar","id":10180144,"avatar_url":"https://avatars.githubusercontent.com/u/10180144?v=3","gravatar_id":"","url":"https://api.github.com/users/david-r-edgar","html_url":"https://github.com/david-r-edgar","followers_url":"https://api.github.com/users/david-r-edgar/followers","following_url":"https://api.github.com/users/david-r-edgar/following{/other_user}","gists_url":"https://api.github.com/users/david-r-edgar/gists{/gist_id}","starred_url":"https://api.github.com/users/david-r-edgar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/david-r-edgar/subscriptions","organizations_url":"https://api.github.com/users/david-r-edgar/orgs","repos_url":"https://api.github.com/users/david-r-edgar/repos","events_url":"https://api.github.com/users/david-r-edgar/events{/privacy}","received_events_url":"https://api.github.com/users/david-r-edgar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2016-06-23T19:21:37Z","updated_at":"2016-06-23T22:28:20Z","closed_at":null,"body":"How can I reserve the name of an identifier defined with 'let'?\r\n\r\nHere's some sample code demonstrating how 'var' and 'let' are not being treated the same.\r\n\r\n```\r\n$ cat testVar.js \r\nvar longFunctionName = function() {\r\n  var longVariableName = 1;\r\n  return longVariableName;\r\n}\r\n\r\nlongFunctionName();\r\n$ uglifyjs testVar.js -m -r 'longVariableName'\r\nvar longFunctionName=function(){var longVariableName=1;return longVariableName};longFunctionName();\r\n$\r\n$\r\n$ cat testLet.js \r\nlet longFunctionName = function() {\r\n  let longVariableName = 1;\r\n  return longVariableName;\r\n}\r\n\r\nlongFunctionName();\r\n$ uglifyjs testLet.js -m -r 'longVariableName'\r\nlet n=function(){let n=1;return n};n();\r\n```\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/mishoo/UglifyJS2/issues/comments/228204816","html_url":"https://github.com/mishoo/UglifyJS2/issues/1166#issuecomment-228204816","issue_url":"https://api.github.com/repos/mishoo/UglifyJS2/issues/1166","id":228204816,"user":{"login":"kzc","id":11593452,"avatar_url":"https://avatars.githubusercontent.com/u/11593452?v=3","gravatar_id":"","url":"https://api.github.com/users/kzc","html_url":"https://github.com/kzc","followers_url":"https://api.github.com/users/kzc/followers","following_url":"https://api.github.com/users/kzc/following{/other_user}","gists_url":"https://api.github.com/users/kzc/gists{/gist_id}","starred_url":"https://api.github.com/users/kzc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kzc/subscriptions","organizations_url":"https://api.github.com/users/kzc/orgs","repos_url":"https://api.github.com/users/kzc/repos","events_url":"https://api.github.com/users/kzc/events{/privacy}","received_events_url":"https://api.github.com/users/kzc/received_events","type":"User","site_admin":false},"created_at":"2016-06-23T22:28:19Z","updated_at":"2016-06-23T22:28:19Z","body":"> let doesn't seem to occur in the list of reserved words.\r\n\r\nThat's not the issue. It's the symbol we're talking about, not `let` keyword."}}
{"actor":{"display_login":"kzc"}}