{"action":"created","comment":{"url":"https://api.github.com/repos/google/closure-compiler/pulls/comments/39308500","id":39308500,"diff_hunk":"@@ -708,6 +708,66 @@ public void testDoWhileForOfCapturedLet() {\n             \"} while (false);\"));\n   }\n \n+  // https://github.com/google/closure-compiler/issues/1124\n+  public void testGithubIssue1124() {\n+    test(LINE_JOINER.join(\n+        \"while (true) {\",\n+        \"  let x = null;\",\n+        \"  var f = function() {\",\n+        \"    x();\",\n+        \"  }\",\n+        \"}\"),\n+        LINE_JOINER.join(\n+        \"var $jscomp$loop$0 = {x:undefined};\",\n+        \"while (true) {\",\n+        \"  $jscomp$loop$0.x = null;\",\n+        \"  var f = function($jscomp$loop$0) {\",\n+        \"    return function() {\",\n+        \"      ($jscomp$loop$0.x)();\",\n+        \"    };\",\n+        \"  }($jscomp$loop$0);\",\n+        \"  $jscomp$loop$0 = {x:$jscomp$loop$0.x};\",","path":"test/com/google/javascript/jscomp/Es6RewriteBlockScopedDeclarationTest.java","position":22,"original_position":22,"commit_id":"55471958bd838cbf2d6f0f04f8f6cbfd6ec7ec40","original_commit_id":"55471958bd838cbf2d6f0f04f8f6cbfd6ec7ec40","user":{"login":"MatrixFrog","id":244381,"avatar_url":"https://avatars.githubusercontent.com/u/244381?v=3","gravatar_id":"","url":"https://api.github.com/users/MatrixFrog","html_url":"https://github.com/MatrixFrog","followers_url":"https://api.github.com/users/MatrixFrog/followers","following_url":"https://api.github.com/users/MatrixFrog/following{/other_user}","gists_url":"https://api.github.com/users/MatrixFrog/gists{/gist_id}","starred_url":"https://api.github.com/users/MatrixFrog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MatrixFrog/subscriptions","organizations_url":"https://api.github.com/users/MatrixFrog/orgs","repos_url":"https://api.github.com/users/MatrixFrog/repos","events_url":"https://api.github.com/users/MatrixFrog/events{/privacy}","received_events_url":"https://api.github.com/users/MatrixFrog/received_events","type":"User","site_admin":false},"body":"This seems quite strange but I guess that's not really related to this CL.","created_at":"2015-09-11T19:34:33Z","updated_at":"2015-09-11T19:34:33Z","html_url":"https://github.com/google/closure-compiler/pull/1127#discussion_r39308500","pull_request_url":"https://api.github.com/repos/google/closure-compiler/pulls/1127","_links":{"self":{"href":"https://api.github.com/repos/google/closure-compiler/pulls/comments/39308500"},"html":{"href":"https://github.com/google/closure-compiler/pull/1127#discussion_r39308500"},"pull_request":{"href":"https://api.github.com/repos/google/closure-compiler/pulls/1127"}}},"pull_request":{"url":"https://api.github.com/repos/google/closure-compiler/pulls/1127","id":44591996,"html_url":"https://github.com/google/closure-compiler/pull/1127","diff_url":"https://github.com/google/closure-compiler/pull/1127.diff","patch_url":"https://github.com/google/closure-compiler/pull/1127.patch","issue_url":"https://api.github.com/repos/google/closure-compiler/issues/1127","number":1127,"state":"open","locked":false,"title":"Fix handling of function declarations in loops with let/consts","user":{"login":"Dominator008","id":1403453,"avatar_url":"https://avatars.githubusercontent.com/u/1403453?v=3","gravatar_id":"","url":"https://api.github.com/users/Dominator008","html_url":"https://github.com/Dominator008","followers_url":"https://api.github.com/users/Dominator008/followers","following_url":"https://api.github.com/users/Dominator008/following{/other_user}","gists_url":"https://api.github.com/users/Dominator008/gists{/gist_id}","starred_url":"https://api.github.com/users/Dominator008/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dominator008/subscriptions","organizations_url":"https://api.github.com/users/Dominator008/orgs","repos_url":"https://api.github.com/users/Dominator008/repos","events_url":"https://api.github.com/users/Dominator008/events{/privacy}","received_events_url":"https://api.github.com/users/Dominator008/received_events","type":"User","site_admin":false},"body":"Convert function declaration to variable declaration so that the IIFE can still be applied.\r\n\r\nUnmark calls to captured functions like $jscomp$loop.x() as FREE_CALL.\r\n\r\nFixes #1124 ","created_at":"2015-09-09T19:47:54Z","updated_at":"2015-09-11T19:34:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"36dd64fd4ac793713cbd63456fdf92fababea619","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/google/closure-compiler/pulls/1127/commits","review_comments_url":"https://api.github.com/repos/google/closure-compiler/pulls/1127/comments","review_comment_url":"https://api.github.com/repos/google/closure-compiler/pulls/comments{/number}","comments_url":"https://api.github.com/repos/google/closure-compiler/issues/1127/comments","statuses_url":"https://api.github.com/repos/google/closure-compiler/statuses/55471958bd838cbf2d6f0f04f8f6cbfd6ec7ec40","head":{"label":"Dominator008:issue1124","ref":"issue1124","sha":"55471958bd838cbf2d6f0f04f8f6cbfd6ec7ec40","user":{"login":"Dominator008","id":1403453,"avatar_url":"https://avatars.githubusercontent.com/u/1403453?v=3","gravatar_id":"","url":"https://api.github.com/users/Dominator008","html_url":"https://github.com/Dominator008","followers_url":"https://api.github.com/users/Dominator008/followers","following_url":"https://api.github.com/users/Dominator008/following{/other_user}","gists_url":"https://api.github.com/users/Dominator008/gists{/gist_id}","starred_url":"https://api.github.com/users/Dominator008/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dominator008/subscriptions","organizations_url":"https://api.github.com/users/Dominator008/orgs","repos_url":"https://api.github.com/users/Dominator008/repos","events_url":"https://api.github.com/users/Dominator008/events{/privacy}","received_events_url":"https://api.github.com/users/Dominator008/received_events","type":"User","site_admin":false},"repo":{"id":20576055,"name":"closure-compiler","full_name":"Dominator008/closure-compiler","owner":{"login":"Dominator008","id":1403453,"avatar_url":"https://avatars.githubusercontent.com/u/1403453?v=3","gravatar_id":"","url":"https://api.github.com/users/Dominator008","html_url":"https://github.com/Dominator008","followers_url":"https://api.github.com/users/Dominator008/followers","following_url":"https://api.github.com/users/Dominator008/following{/other_user}","gists_url":"https://api.github.com/users/Dominator008/gists{/gist_id}","starred_url":"https://api.github.com/users/Dominator008/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dominator008/subscriptions","organizations_url":"https://api.github.com/users/Dominator008/orgs","repos_url":"https://api.github.com/users/Dominator008/repos","events_url":"https://api.github.com/users/Dominator008/events{/privacy}","received_events_url":"https://api.github.com/users/Dominator008/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Dominator008/closure-compiler","description":"A JavaScript checker and optimizer.","fork":true,"url":"https://api.github.com/repos/Dominator008/closure-compiler","forks_url":"https://api.github.com/repos/Dominator008/closure-compiler/forks","keys_url":"https://api.github.com/repos/Dominator008/closure-compiler/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Dominator008/closure-compiler/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Dominator008/closure-compiler/teams","hooks_url":"https://api.github.com/repos/Dominator008/closure-compiler/hooks","issue_events_url":"https://api.github.com/repos/Dominator008/closure-compiler/issues/events{/number}","events_url":"https://api.github.com/repos/Dominator008/closure-compiler/events","assignees_url":"https://api.github.com/repos/Dominator008/closure-compiler/assignees{/user}","branches_url":"https://api.github.com/repos/Dominator008/closure-compiler/branches{/branch}","tags_url":"https://api.github.com/repos/Dominator008/closure-compiler/tags","blobs_url":"https://api.github.com/repos/Dominator008/closure-compiler/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Dominator008/closure-compiler/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Dominator008/closure-compiler/git/refs{/sha}","trees_url":"https://api.github.com/repos/Dominator008/closure-compiler/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Dominator008/closure-compiler/statuses/{sha}","languages_url":"https://api.github.com/repos/Dominator008/closure-compiler/languages","stargazers_url":"https://api.github.com/repos/Dominator008/closure-compiler/stargazers","contributors_url":"https://api.github.com/repos/Dominator008/closure-compiler/contributors","subscribers_url":"https://api.github.com/repos/Dominator008/closure-compiler/subscribers","subscription_url":"https://api.github.com/repos/Dominator008/closure-compiler/subscription","commits_url":"https://api.github.com/repos/Dominator008/closure-compiler/commits{/sha}","git_commits_url":"https://api.github.com/repos/Dominator008/closure-compiler/git/commits{/sha}","comments_url":"https://api.github.com/repos/Dominator008/closure-compiler/comments{/number}","issue_comment_url":"https://api.github.com/repos/Dominator008/closure-compiler/issues/comments{/number}","contents_url":"https://api.github.com/repos/Dominator008/closure-compiler/contents/{+path}","compare_url":"https://api.github.com/repos/Dominator008/closure-compiler/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Dominator008/closure-compiler/merges","archive_url":"https://api.github.com/repos/Dominator008/closure-compiler/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Dominator008/closure-compiler/downloads","issues_url":"https://api.github.com/repos/Dominator008/closure-compiler/issues{/number}","pulls_url":"https://api.github.com/repos/Dominator008/closure-compiler/pulls{/number}","milestones_url":"https://api.github.com/repos/Dominator008/closure-compiler/milestones{/number}","notifications_url":"https://api.github.com/repos/Dominator008/closure-compiler/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Dominator008/closure-compiler/labels{/name}","releases_url":"https://api.github.com/repos/Dominator008/closure-compiler/releases{/id}","created_at":"2014-06-06T19:49:52Z","updated_at":"2015-04-07T18:01:27Z","pushed_at":"2015-09-09T22:56:00Z","git_url":"git://github.com/Dominator008/closure-compiler.git","ssh_url":"git@github.com:Dominator008/closure-compiler.git","clone_url":"https://github.com/Dominator008/closure-compiler.git","svn_url":"https://github.com/Dominator008/closure-compiler","homepage":" https://developers.google.com/closure/compiler/","size":164283,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"google:master","ref":"master","sha":"0adcdbf00d7ec4b470b6056ebaa4b96273d7c7ac","user":{"login":"google","id":1342004,"avatar_url":"https://avatars.githubusercontent.com/u/1342004?v=3","gravatar_id":"","url":"https://api.github.com/users/google","html_url":"https://github.com/google","followers_url":"https://api.github.com/users/google/followers","following_url":"https://api.github.com/users/google/following{/other_user}","gists_url":"https://api.github.com/users/google/gists{/gist_id}","starred_url":"https://api.github.com/users/google/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/google/subscriptions","organizations_url":"https://api.github.com/users/google/orgs","repos_url":"https://api.github.com/users/google/repos","events_url":"https://api.github.com/users/google/events{/privacy}","received_events_url":"https://api.github.com/users/google/received_events","type":"Organization","site_admin":false},"repo":{"id":18845024,"name":"closure-compiler","full_name":"google/closure-compiler","owner":{"login":"google","id":1342004,"avatar_url":"https://avatars.githubusercontent.com/u/1342004?v=3","gravatar_id":"","url":"https://api.github.com/users/google","html_url":"https://github.com/google","followers_url":"https://api.github.com/users/google/followers","following_url":"https://api.github.com/users/google/following{/other_user}","gists_url":"https://api.github.com/users/google/gists{/gist_id}","starred_url":"https://api.github.com/users/google/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/google/subscriptions","organizations_url":"https://api.github.com/users/google/orgs","repos_url":"https://api.github.com/users/google/repos","events_url":"https://api.github.com/users/google/events{/privacy}","received_events_url":"https://api.github.com/users/google/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/google/closure-compiler","description":"A JavaScript checker and optimizer.","fork":false,"url":"https://api.github.com/repos/google/closure-compiler","forks_url":"https://api.github.com/repos/google/closure-compiler/forks","keys_url":"https://api.github.com/repos/google/closure-compiler/keys{/key_id}","collaborators_url":"https://api.github.com/repos/google/closure-compiler/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/google/closure-compiler/teams","hooks_url":"https://api.github.com/repos/google/closure-compiler/hooks","issue_events_url":"https://api.github.com/repos/google/closure-compiler/issues/events{/number}","events_url":"https://api.github.com/repos/google/closure-compiler/events","assignees_url":"https://api.github.com/repos/google/closure-compiler/assignees{/user}","branches_url":"https://api.github.com/repos/google/closure-compiler/branches{/branch}","tags_url":"https://api.github.com/repos/google/closure-compiler/tags","blobs_url":"https://api.github.com/repos/google/closure-compiler/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/google/closure-compiler/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/google/closure-compiler/git/refs{/sha}","trees_url":"https://api.github.com/repos/google/closure-compiler/git/trees{/sha}","statuses_url":"https://api.github.com/repos/google/closure-compiler/statuses/{sha}","languages_url":"https://api.github.com/repos/google/closure-compiler/languages","stargazers_url":"https://api.github.com/repos/google/closure-compiler/stargazers","contributors_url":"https://api.github.com/repos/google/closure-compiler/contributors","subscribers_url":"https://api.github.com/repos/google/closure-compiler/subscribers","subscription_url":"https://api.github.com/repos/google/closure-compiler/subscription","commits_url":"https://api.github.com/repos/google/closure-compiler/commits{/sha}","git_commits_url":"https://api.github.com/repos/google/closure-compiler/git/commits{/sha}","comments_url":"https://api.github.com/repos/google/closure-compiler/comments{/number}","issue_comment_url":"https://api.github.com/repos/google/closure-compiler/issues/comments{/number}","contents_url":"https://api.github.com/repos/google/closure-compiler/contents/{+path}","compare_url":"https://api.github.com/repos/google/closure-compiler/compare/{base}...{head}","merges_url":"https://api.github.com/repos/google/closure-compiler/merges","archive_url":"https://api.github.com/repos/google/closure-compiler/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/google/closure-compiler/downloads","issues_url":"https://api.github.com/repos/google/closure-compiler/issues{/number}","pulls_url":"https://api.github.com/repos/google/closure-compiler/pulls{/number}","milestones_url":"https://api.github.com/repos/google/closure-compiler/milestones{/number}","notifications_url":"https://api.github.com/repos/google/closure-compiler/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/google/closure-compiler/labels{/name}","releases_url":"https://api.github.com/repos/google/closure-compiler/releases{/id}","created_at":"2014-04-16T15:30:36Z","updated_at":"2015-09-11T14:53:44Z","pushed_at":"2015-09-11T17:10:24Z","git_url":"git://github.com/google/closure-compiler.git","ssh_url":"git@github.com:google/closure-compiler.git","clone_url":"https://github.com/google/closure-compiler.git","svn_url":"https://github.com/google/closure-compiler","homepage":" https://developers.google.com/closure/compiler/","size":110132,"stargazers_count":1639,"watchers_count":1639,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":365,"mirror_url":null,"open_issues_count":398,"forks":365,"open_issues":398,"watchers":1639,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/google/closure-compiler/pulls/1127"},"html":{"href":"https://github.com/google/closure-compiler/pull/1127"},"issue":{"href":"https://api.github.com/repos/google/closure-compiler/issues/1127"},"comments":{"href":"https://api.github.com/repos/google/closure-compiler/issues/1127/comments"},"review_comments":{"href":"https://api.github.com/repos/google/closure-compiler/pulls/1127/comments"},"review_comment":{"href":"https://api.github.com/repos/google/closure-compiler/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/google/closure-compiler/pulls/1127/commits"},"statuses":{"href":"https://api.github.com/repos/google/closure-compiler/statuses/55471958bd838cbf2d6f0f04f8f6cbfd6ec7ec40"}}}}