{"action":"created","comment":{"url":"https://api.github.com/repos/google/traceur-compiler/pulls/comments/26180004","id":26180004,"diff_hunk":"@@ -527,17 +527,31 @@ function peekTokenNoLineTerminator() {\n   let end = t.location.start.offset;\n   for (let i = start; i < end; i++) {\n     let code = input.charCodeAt(i);\n-    if (isLineTerminator(code))\n+    if (isLineTerminator(code)) {\n       return null;\n+    }\n \n-    // If we have a block comment we need to skip it since new lines inside\n-    // the comment are not significant.\n+    // If a block comment contains new lines then the comment is treated as a\n+    // new line.\n     if (code === 47) {  // '/'\n       code = input.charCodeAt(++i);\n       // End of line comments always mean a new line is present.\n-      if (code === 47)  // '/'\n+      if (code === 47) {  // '/'\n         return null;\n-      i = input.indexOf('*/', i) + 2;\n+      }\n+","path":"src/syntax/Scanner.js","position":21,"original_position":21,"commit_id":"1f83be1133ed270d0acccf1b881fc339b4b734ee","original_commit_id":"1f83be1133ed270d0acccf1b881fc339b4b734ee","user":{"login":"johnjbarton","id":205570,"avatar_url":"https://avatars.githubusercontent.com/u/205570?v=3","gravatar_id":"","url":"https://api.github.com/users/johnjbarton","html_url":"https://github.com/johnjbarton","followers_url":"https://api.github.com/users/johnjbarton/followers","following_url":"https://api.github.com/users/johnjbarton/following{/other_user}","gists_url":"https://api.github.com/users/johnjbarton/gists{/gist_id}","starred_url":"https://api.github.com/users/johnjbarton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnjbarton/subscriptions","organizations_url":"https://api.github.com/users/johnjbarton/orgs","repos_url":"https://api.github.com/users/johnjbarton/repos","events_url":"https://api.github.com/users/johnjbarton/events{/privacy}","received_events_url":"https://api.github.com/users/johnjbarton/received_events","type":"User","site_admin":false},"body":"I don't understand why we don't need to check that `code === 42` at this point.  It seems like `/! */` would also work here. ","created_at":"2015-03-11T00:22:46Z","updated_at":"2015-03-11T00:22:46Z","html_url":"https://github.com/google/traceur-compiler/pull/1808#discussion_r26180004","pull_request_url":"https://api.github.com/repos/google/traceur-compiler/pulls/1808","_links":{"self":{"href":"https://api.github.com/repos/google/traceur-compiler/pulls/comments/26180004"},"html":{"href":"https://github.com/google/traceur-compiler/pull/1808#discussion_r26180004"},"pull_request":{"href":"https://api.github.com/repos/google/traceur-compiler/pulls/1808"}}},"pull_request":{"url":"https://api.github.com/repos/google/traceur-compiler/pulls/1808","id":30875719,"html_url":"https://github.com/google/traceur-compiler/pull/1808","diff_url":"https://github.com/google/traceur-compiler/pull/1808.diff","patch_url":"https://github.com/google/traceur-compiler/pull/1808.patch","issue_url":"https://api.github.com/repos/google/traceur-compiler/issues/1808","number":1808,"state":"open","locked":false,"title":"Fix ASI with multiline comments","user":{"login":"arv","id":45845,"avatar_url":"https://avatars.githubusercontent.com/u/45845?v=3","gravatar_id":"","url":"https://api.github.com/users/arv","html_url":"https://github.com/arv","followers_url":"https://api.github.com/users/arv/followers","following_url":"https://api.github.com/users/arv/following{/other_user}","gists_url":"https://api.github.com/users/arv/gists{/gist_id}","starred_url":"https://api.github.com/users/arv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arv/subscriptions","organizations_url":"https://api.github.com/users/arv/orgs","repos_url":"https://api.github.com/users/arv/repos","events_url":"https://api.github.com/users/arv/events{/privacy}","received_events_url":"https://api.github.com/users/arv/received_events","type":"User","site_admin":false},"body":"A multiline comment is treated as a new line for ASI when it\r\ncontains a new line.\r\n\r\nFixes #1803, #1809","created_at":"2015-03-10T17:56:11Z","updated_at":"2015-03-11T00:22:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"25213519670ac7909b06a34bfabbb0f469be72a4","assignee":{"login":"johnjbarton","id":205570,"avatar_url":"https://avatars.githubusercontent.com/u/205570?v=3","gravatar_id":"","url":"https://api.github.com/users/johnjbarton","html_url":"https://github.com/johnjbarton","followers_url":"https://api.github.com/users/johnjbarton/followers","following_url":"https://api.github.com/users/johnjbarton/following{/other_user}","gists_url":"https://api.github.com/users/johnjbarton/gists{/gist_id}","starred_url":"https://api.github.com/users/johnjbarton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnjbarton/subscriptions","organizations_url":"https://api.github.com/users/johnjbarton/orgs","repos_url":"https://api.github.com/users/johnjbarton/repos","events_url":"https://api.github.com/users/johnjbarton/events{/privacy}","received_events_url":"https://api.github.com/users/johnjbarton/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/google/traceur-compiler/pulls/1808/commits","review_comments_url":"https://api.github.com/repos/google/traceur-compiler/pulls/1808/comments","review_comment_url":"https://api.github.com/repos/google/traceur-compiler/pulls/comments{/number}","comments_url":"https://api.github.com/repos/google/traceur-compiler/issues/1808/comments","statuses_url":"https://api.github.com/repos/google/traceur-compiler/statuses/1f83be1133ed270d0acccf1b881fc339b4b734ee","head":{"label":"arv:comment-new-line","ref":"comment-new-line","sha":"1f83be1133ed270d0acccf1b881fc339b4b734ee","user":{"login":"arv","id":45845,"avatar_url":"https://avatars.githubusercontent.com/u/45845?v=3","gravatar_id":"","url":"https://api.github.com/users/arv","html_url":"https://github.com/arv","followers_url":"https://api.github.com/users/arv/followers","following_url":"https://api.github.com/users/arv/following{/other_user}","gists_url":"https://api.github.com/users/arv/gists{/gist_id}","starred_url":"https://api.github.com/users/arv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arv/subscriptions","organizations_url":"https://api.github.com/users/arv/orgs","repos_url":"https://api.github.com/users/arv/repos","events_url":"https://api.github.com/users/arv/events{/privacy}","received_events_url":"https://api.github.com/users/arv/received_events","type":"User","site_admin":false},"repo":{"id":9069860,"name":"traceur-compiler","full_name":"arv/traceur-compiler","owner":{"login":"arv","id":45845,"avatar_url":"https://avatars.githubusercontent.com/u/45845?v=3","gravatar_id":"","url":"https://api.github.com/users/arv","html_url":"https://github.com/arv","followers_url":"https://api.github.com/users/arv/followers","following_url":"https://api.github.com/users/arv/following{/other_user}","gists_url":"https://api.github.com/users/arv/gists{/gist_id}","starred_url":"https://api.github.com/users/arv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arv/subscriptions","organizations_url":"https://api.github.com/users/arv/orgs","repos_url":"https://api.github.com/users/arv/repos","events_url":"https://api.github.com/users/arv/events{/privacy}","received_events_url":"https://api.github.com/users/arv/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/arv/traceur-compiler","description":"Traceur is a JavaScript.next-to-JavaScript-of-today compiler","fork":true,"url":"https://api.github.com/repos/arv/traceur-compiler","forks_url":"https://api.github.com/repos/arv/traceur-compiler/forks","keys_url":"https://api.github.com/repos/arv/traceur-compiler/keys{/key_id}","collaborators_url":"https://api.github.com/repos/arv/traceur-compiler/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/arv/traceur-compiler/teams","hooks_url":"https://api.github.com/repos/arv/traceur-compiler/hooks","issue_events_url":"https://api.github.com/repos/arv/traceur-compiler/issues/events{/number}","events_url":"https://api.github.com/repos/arv/traceur-compiler/events","assignees_url":"https://api.github.com/repos/arv/traceur-compiler/assignees{/user}","branches_url":"https://api.github.com/repos/arv/traceur-compiler/branches{/branch}","tags_url":"https://api.github.com/repos/arv/traceur-compiler/tags","blobs_url":"https://api.github.com/repos/arv/traceur-compiler/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/arv/traceur-compiler/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/arv/traceur-compiler/git/refs{/sha}","trees_url":"https://api.github.com/repos/arv/traceur-compiler/git/trees{/sha}","statuses_url":"https://api.github.com/repos/arv/traceur-compiler/statuses/{sha}","languages_url":"https://api.github.com/repos/arv/traceur-compiler/languages","stargazers_url":"https://api.github.com/repos/arv/traceur-compiler/stargazers","contributors_url":"https://api.github.com/repos/arv/traceur-compiler/contributors","subscribers_url":"https://api.github.com/repos/arv/traceur-compiler/subscribers","subscription_url":"https://api.github.com/repos/arv/traceur-compiler/subscription","commits_url":"https://api.github.com/repos/arv/traceur-compiler/commits{/sha}","git_commits_url":"https://api.github.com/repos/arv/traceur-compiler/git/commits{/sha}","comments_url":"https://api.github.com/repos/arv/traceur-compiler/comments{/number}","issue_comment_url":"https://api.github.com/repos/arv/traceur-compiler/issues/comments{/number}","contents_url":"https://api.github.com/repos/arv/traceur-compiler/contents/{+path}","compare_url":"https://api.github.com/repos/arv/traceur-compiler/compare/{base}...{head}","merges_url":"https://api.github.com/repos/arv/traceur-compiler/merges","archive_url":"https://api.github.com/repos/arv/traceur-compiler/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/arv/traceur-compiler/downloads","issues_url":"https://api.github.com/repos/arv/traceur-compiler/issues{/number}","pulls_url":"https://api.github.com/repos/arv/traceur-compiler/pulls{/number}","milestones_url":"https://api.github.com/repos/arv/traceur-compiler/milestones{/number}","notifications_url":"https://api.github.com/repos/arv/traceur-compiler/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/arv/traceur-compiler/labels{/name}","releases_url":"https://api.github.com/repos/arv/traceur-compiler/releases{/id}","created_at":"2013-03-28T04:13:00Z","updated_at":"2015-03-10T22:04:23Z","pushed_at":"2015-03-10T22:54:12Z","git_url":"git://github.com/arv/traceur-compiler.git","ssh_url":"git@github.com:arv/traceur-compiler.git","clone_url":"https://github.com/arv/traceur-compiler.git","svn_url":"https://github.com/arv/traceur-compiler","homepage":"","size":25706,"stargazers_count":5,"watchers_count":5,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":5,"default_branch":"master"}},"base":{"label":"google:master","ref":"master","sha":"ae96d1386fd9bdf0a787c6c76309a45d6d550fd4","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":9060347,"name":"traceur-compiler","full_name":"google/traceur-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/traceur-compiler","description":"Traceur is a JavaScript.next-to-JavaScript-of-today compiler","fork":false,"url":"https://api.github.com/repos/google/traceur-compiler","forks_url":"https://api.github.com/repos/google/traceur-compiler/forks","keys_url":"https://api.github.com/repos/google/traceur-compiler/keys{/key_id}","collaborators_url":"https://api.github.com/repos/google/traceur-compiler/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/google/traceur-compiler/teams","hooks_url":"https://api.github.com/repos/google/traceur-compiler/hooks","issue_events_url":"https://api.github.com/repos/google/traceur-compiler/issues/events{/number}","events_url":"https://api.github.com/repos/google/traceur-compiler/events","assignees_url":"https://api.github.com/repos/google/traceur-compiler/assignees{/user}","branches_url":"https://api.github.com/repos/google/traceur-compiler/branches{/branch}","tags_url":"https://api.github.com/repos/google/traceur-compiler/tags","blobs_url":"https://api.github.com/repos/google/traceur-compiler/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/google/traceur-compiler/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/google/traceur-compiler/git/refs{/sha}","trees_url":"https://api.github.com/repos/google/traceur-compiler/git/trees{/sha}","statuses_url":"https://api.github.com/repos/google/traceur-compiler/statuses/{sha}","languages_url":"https://api.github.com/repos/google/traceur-compiler/languages","stargazers_url":"https://api.github.com/repos/google/traceur-compiler/stargazers","contributors_url":"https://api.github.com/repos/google/traceur-compiler/contributors","subscribers_url":"https://api.github.com/repos/google/traceur-compiler/subscribers","subscription_url":"https://api.github.com/repos/google/traceur-compiler/subscription","commits_url":"https://api.github.com/repos/google/traceur-compiler/commits{/sha}","git_commits_url":"https://api.github.com/repos/google/traceur-compiler/git/commits{/sha}","comments_url":"https://api.github.com/repos/google/traceur-compiler/comments{/number}","issue_comment_url":"https://api.github.com/repos/google/traceur-compiler/issues/comments{/number}","contents_url":"https://api.github.com/repos/google/traceur-compiler/contents/{+path}","compare_url":"https://api.github.com/repos/google/traceur-compiler/compare/{base}...{head}","merges_url":"https://api.github.com/repos/google/traceur-compiler/merges","archive_url":"https://api.github.com/repos/google/traceur-compiler/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/google/traceur-compiler/downloads","issues_url":"https://api.github.com/repos/google/traceur-compiler/issues{/number}","pulls_url":"https://api.github.com/repos/google/traceur-compiler/pulls{/number}","milestones_url":"https://api.github.com/repos/google/traceur-compiler/milestones{/number}","notifications_url":"https://api.github.com/repos/google/traceur-compiler/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/google/traceur-compiler/labels{/name}","releases_url":"https://api.github.com/repos/google/traceur-compiler/releases{/id}","created_at":"2013-03-27T18:05:40Z","updated_at":"2015-03-10T23:27:58Z","pushed_at":"2015-03-10T16:21:19Z","git_url":"git://github.com/google/traceur-compiler.git","ssh_url":"git@github.com:google/traceur-compiler.git","clone_url":"https://github.com/google/traceur-compiler.git","svn_url":"https://github.com/google/traceur-compiler","homepage":"","size":36523,"stargazers_count":4744,"watchers_count":4744,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":281,"mirror_url":null,"open_issues_count":262,"forks":281,"open_issues":262,"watchers":4744,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/google/traceur-compiler/pulls/1808"},"html":{"href":"https://github.com/google/traceur-compiler/pull/1808"},"issue":{"href":"https://api.github.com/repos/google/traceur-compiler/issues/1808"},"comments":{"href":"https://api.github.com/repos/google/traceur-compiler/issues/1808/comments"},"review_comments":{"href":"https://api.github.com/repos/google/traceur-compiler/pulls/1808/comments"},"review_comment":{"href":"https://api.github.com/repos/google/traceur-compiler/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/google/traceur-compiler/pulls/1808/commits"},"statuses":{"href":"https://api.github.com/repos/google/traceur-compiler/statuses/1f83be1133ed270d0acccf1b881fc339b4b734ee"}}}}