{"action":"created","issue":{"url":"https://api.github.com/repos/mishoo/UglifyJS2/issues/1286","repository_url":"https://api.github.com/repos/mishoo/UglifyJS2","labels_url":"https://api.github.com/repos/mishoo/UglifyJS2/issues/1286/labels{/name}","comments_url":"https://api.github.com/repos/mishoo/UglifyJS2/issues/1286/comments","events_url":"https://api.github.com/repos/mishoo/UglifyJS2/issues/1286/events","html_url":"https://github.com/mishoo/UglifyJS2/issues/1286","id":175863260,"number":1286,"title":"Variables improperly discarded when used with destructuring assignment","user":{"login":"depp","id":746739,"avatar_url":"https://avatars.githubusercontent.com/u/746739?v=3","gravatar_id":"","url":"https://api.github.com/users/depp","html_url":"https://github.com/depp","followers_url":"https://api.github.com/users/depp/followers","following_url":"https://api.github.com/users/depp/following{/other_user}","gists_url":"https://api.github.com/users/depp/gists{/gist_id}","starred_url":"https://api.github.com/users/depp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/depp/subscriptions","organizations_url":"https://api.github.com/users/depp/orgs","repos_url":"https://api.github.com/users/depp/repos","events_url":"https://api.github.com/users/depp/events{/privacy}","received_events_url":"https://api.github.com/users/depp/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-08T21:00:23Z","updated_at":"2016-09-08T21:42:46Z","closed_at":null,"body":"Version 2.6.2 from NPM and more recent version (1db50c3b169ee4195e1935013d6721628eb5b4bd) both demonstrate this problem.\r\n\r\nThis code snipped demonstrates the error:\r\n\r\n```\r\n(function() {\r\n\tlet a = [1];\r\n\tlet [b] = a;\r\n\tf(b);\r\n})();\r\n```\r\n\r\nWith `-c`, this warns \"WARN: Dropping unused variable a\" and produces the following incorrect code:\r\n\r\n```\r\n!function(){let[b]=a;f(b)}();\r\n```\r\n\r\nThe following code does not invoke the same behavior:\r\n\r\n```\r\n(function() {\r\n\tlet a = [1];\r\n\tlet b = a;\r\n\tf(b);\r\n})();\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/mishoo/UglifyJS2/issues/comments/245750932","html_url":"https://github.com/mishoo/UglifyJS2/issues/1286#issuecomment-245750932","issue_url":"https://api.github.com/repos/mishoo/UglifyJS2/issues/1286","id":245750932,"user":{"login":"avdg","id":212248,"avatar_url":"https://avatars.githubusercontent.com/u/212248?v=3","gravatar_id":"","url":"https://api.github.com/users/avdg","html_url":"https://github.com/avdg","followers_url":"https://api.github.com/users/avdg/followers","following_url":"https://api.github.com/users/avdg/following{/other_user}","gists_url":"https://api.github.com/users/avdg/gists{/gist_id}","starred_url":"https://api.github.com/users/avdg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avdg/subscriptions","organizations_url":"https://api.github.com/users/avdg/orgs","repos_url":"https://api.github.com/users/avdg/repos","events_url":"https://api.github.com/users/avdg/events{/privacy}","received_events_url":"https://api.github.com/users/avdg/received_events","type":"User","site_admin":false},"created_at":"2016-09-08T21:42:46Z","updated_at":"2016-09-08T21:42:46Z","body":"I wonder how that \"destructuring\" even got there (let alone the let support). Sorry, but you shouldn't expect harmony support on stable yet.\r\n\r\nWe have a harmony branch for that but the mangler on that beanch is unreliable for the moment being"}}
{"actor":{"display_login":"avdg"}}