{"action":"opened","number":205,"pull_request":{"url":"https://api.github.com/repos/gopherjs/gopherjs/pulls/205","id":32926725,"html_url":"https://github.com/gopherjs/gopherjs/pull/205","diff_url":"https://github.com/gopherjs/gopherjs/pull/205.diff","patch_url":"https://github.com/gopherjs/gopherjs/pull/205.patch","issue_url":"https://api.github.com/repos/gopherjs/gopherjs/issues/205","number":205,"state":"open","locked":false,"title":"handle non-boolean case clauses in switch statement with empty tag","user":{"login":"jeremyschlatter","id":5741620,"avatar_url":"https://avatars.githubusercontent.com/u/5741620?v=3","gravatar_id":"","url":"https://api.github.com/users/jeremyschlatter","html_url":"https://github.com/jeremyschlatter","followers_url":"https://api.github.com/users/jeremyschlatter/followers","following_url":"https://api.github.com/users/jeremyschlatter/following{/other_user}","gists_url":"https://api.github.com/users/jeremyschlatter/gists{/gist_id}","starred_url":"https://api.github.com/users/jeremyschlatter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeremyschlatter/subscriptions","organizations_url":"https://api.github.com/users/jeremyschlatter/orgs","repos_url":"https://api.github.com/users/jeremyschlatter/repos","events_url":"https://api.github.com/users/jeremyschlatter/events{/privacy}","received_events_url":"https://api.github.com/users/jeremyschlatter/received_events","type":"User","site_admin":false},"body":"Fixes #204\r\n\r\nFor switch statements with no tag, we effectively just cast each case\r\nexpression to a bool. But a case expression can have type interface{},\r\nand casting the javascript equivalent to a bool always returns true. To\r\nfix that, this commit converts such an expression X to the expression\r\n\"true == x\" before translation to javascript.","created_at":"2015-04-09T05:44:50Z","updated_at":"2015-04-09T05:44:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/gopherjs/gopherjs/pulls/205/commits","review_comments_url":"https://api.github.com/repos/gopherjs/gopherjs/pulls/205/comments","review_comment_url":"https://api.github.com/repos/gopherjs/gopherjs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gopherjs/gopherjs/issues/205/comments","statuses_url":"https://api.github.com/repos/gopherjs/gopherjs/statuses/8c71c822c786af4b898dff623c1f9141879f9921","head":{"label":"jeremyschlatter:master","ref":"master","sha":"8c71c822c786af4b898dff623c1f9141879f9921","user":{"login":"jeremyschlatter","id":5741620,"avatar_url":"https://avatars.githubusercontent.com/u/5741620?v=3","gravatar_id":"","url":"https://api.github.com/users/jeremyschlatter","html_url":"https://github.com/jeremyschlatter","followers_url":"https://api.github.com/users/jeremyschlatter/followers","following_url":"https://api.github.com/users/jeremyschlatter/following{/other_user}","gists_url":"https://api.github.com/users/jeremyschlatter/gists{/gist_id}","starred_url":"https://api.github.com/users/jeremyschlatter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeremyschlatter/subscriptions","organizations_url":"https://api.github.com/users/jeremyschlatter/orgs","repos_url":"https://api.github.com/users/jeremyschlatter/repos","events_url":"https://api.github.com/users/jeremyschlatter/events{/privacy}","received_events_url":"https://api.github.com/users/jeremyschlatter/received_events","type":"User","site_admin":false},"repo":{"id":33647031,"name":"gopherjs","full_name":"jeremyschlatter/gopherjs","owner":{"login":"jeremyschlatter","id":5741620,"avatar_url":"https://avatars.githubusercontent.com/u/5741620?v=3","gravatar_id":"","url":"https://api.github.com/users/jeremyschlatter","html_url":"https://github.com/jeremyschlatter","followers_url":"https://api.github.com/users/jeremyschlatter/followers","following_url":"https://api.github.com/users/jeremyschlatter/following{/other_user}","gists_url":"https://api.github.com/users/jeremyschlatter/gists{/gist_id}","starred_url":"https://api.github.com/users/jeremyschlatter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeremyschlatter/subscriptions","organizations_url":"https://api.github.com/users/jeremyschlatter/orgs","repos_url":"https://api.github.com/users/jeremyschlatter/repos","events_url":"https://api.github.com/users/jeremyschlatter/events{/privacy}","received_events_url":"https://api.github.com/users/jeremyschlatter/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jeremyschlatter/gopherjs","description":"A compiler from Go (golang.org) to JavaScript for running Go code in a browser","fork":true,"url":"https://api.github.com/repos/jeremyschlatter/gopherjs","forks_url":"https://api.github.com/repos/jeremyschlatter/gopherjs/forks","keys_url":"https://api.github.com/repos/jeremyschlatter/gopherjs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jeremyschlatter/gopherjs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jeremyschlatter/gopherjs/teams","hooks_url":"https://api.github.com/repos/jeremyschlatter/gopherjs/hooks","issue_events_url":"https://api.github.com/repos/jeremyschlatter/gopherjs/issues/events{/number}","events_url":"https://api.github.com/repos/jeremyschlatter/gopherjs/events","assignees_url":"https://api.github.com/repos/jeremyschlatter/gopherjs/assignees{/user}","branches_url":"https://api.github.com/repos/jeremyschlatter/gopherjs/branches{/branch}","tags_url":"https://api.github.com/repos/jeremyschlatter/gopherjs/tags","blobs_url":"https://api.github.com/repos/jeremyschlatter/gopherjs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jeremyschlatter/gopherjs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jeremyschlatter/gopherjs/git/refs{/sha}","trees_url":"https://api.github.com/repos/jeremyschlatter/gopherjs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jeremyschlatter/gopherjs/statuses/{sha}","languages_url":"https://api.github.com/repos/jeremyschlatter/gopherjs/languages","stargazers_url":"https://api.github.com/repos/jeremyschlatter/gopherjs/stargazers","contributors_url":"https://api.github.com/repos/jeremyschlatter/gopherjs/contributors","subscribers_url":"https://api.github.com/repos/jeremyschlatter/gopherjs/subscribers","subscription_url":"https://api.github.com/repos/jeremyschlatter/gopherjs/subscription","commits_url":"https://api.github.com/repos/jeremyschlatter/gopherjs/commits{/sha}","git_commits_url":"https://api.github.com/repos/jeremyschlatter/gopherjs/git/commits{/sha}","comments_url":"https://api.github.com/repos/jeremyschlatter/gopherjs/comments{/number}","issue_comment_url":"https://api.github.com/repos/jeremyschlatter/gopherjs/issues/comments{/number}","contents_url":"https://api.github.com/repos/jeremyschlatter/gopherjs/contents/{+path}","compare_url":"https://api.github.com/repos/jeremyschlatter/gopherjs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jeremyschlatter/gopherjs/merges","archive_url":"https://api.github.com/repos/jeremyschlatter/gopherjs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jeremyschlatter/gopherjs/downloads","issues_url":"https://api.github.com/repos/jeremyschlatter/gopherjs/issues{/number}","pulls_url":"https://api.github.com/repos/jeremyschlatter/gopherjs/pulls{/number}","milestones_url":"https://api.github.com/repos/jeremyschlatter/gopherjs/milestones{/number}","notifications_url":"https://api.github.com/repos/jeremyschlatter/gopherjs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jeremyschlatter/gopherjs/labels{/name}","releases_url":"https://api.github.com/repos/jeremyschlatter/gopherjs/releases{/id}","created_at":"2015-04-09T03:46:44Z","updated_at":"2015-04-09T05:40:13Z","pushed_at":"2015-04-09T05:40:13Z","git_url":"git://github.com/jeremyschlatter/gopherjs.git","ssh_url":"git@github.com:jeremyschlatter/gopherjs.git","clone_url":"https://github.com/jeremyschlatter/gopherjs.git","svn_url":"https://github.com/jeremyschlatter/gopherjs","homepage":"","size":7938,"stargazers_count":0,"watchers_count":0,"language":"Go","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":"gopherjs:master","ref":"master","sha":"3ce70c0afb1aeb8075a6c2b3b52131e987751ce6","user":{"login":"gopherjs","id":6654647,"avatar_url":"https://avatars.githubusercontent.com/u/6654647?v=3","gravatar_id":"","url":"https://api.github.com/users/gopherjs","html_url":"https://github.com/gopherjs","followers_url":"https://api.github.com/users/gopherjs/followers","following_url":"https://api.github.com/users/gopherjs/following{/other_user}","gists_url":"https://api.github.com/users/gopherjs/gists{/gist_id}","starred_url":"https://api.github.com/users/gopherjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gopherjs/subscriptions","organizations_url":"https://api.github.com/users/gopherjs/orgs","repos_url":"https://api.github.com/users/gopherjs/repos","events_url":"https://api.github.com/users/gopherjs/events{/privacy}","received_events_url":"https://api.github.com/users/gopherjs/received_events","type":"Organization","site_admin":false},"repo":{"id":12418999,"name":"gopherjs","full_name":"gopherjs/gopherjs","owner":{"login":"gopherjs","id":6654647,"avatar_url":"https://avatars.githubusercontent.com/u/6654647?v=3","gravatar_id":"","url":"https://api.github.com/users/gopherjs","html_url":"https://github.com/gopherjs","followers_url":"https://api.github.com/users/gopherjs/followers","following_url":"https://api.github.com/users/gopherjs/following{/other_user}","gists_url":"https://api.github.com/users/gopherjs/gists{/gist_id}","starred_url":"https://api.github.com/users/gopherjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gopherjs/subscriptions","organizations_url":"https://api.github.com/users/gopherjs/orgs","repos_url":"https://api.github.com/users/gopherjs/repos","events_url":"https://api.github.com/users/gopherjs/events{/privacy}","received_events_url":"https://api.github.com/users/gopherjs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gopherjs/gopherjs","description":"A compiler from Go (golang.org) to JavaScript for running Go code in a browser","fork":false,"url":"https://api.github.com/repos/gopherjs/gopherjs","forks_url":"https://api.github.com/repos/gopherjs/gopherjs/forks","keys_url":"https://api.github.com/repos/gopherjs/gopherjs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gopherjs/gopherjs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gopherjs/gopherjs/teams","hooks_url":"https://api.github.com/repos/gopherjs/gopherjs/hooks","issue_events_url":"https://api.github.com/repos/gopherjs/gopherjs/issues/events{/number}","events_url":"https://api.github.com/repos/gopherjs/gopherjs/events","assignees_url":"https://api.github.com/repos/gopherjs/gopherjs/assignees{/user}","branches_url":"https://api.github.com/repos/gopherjs/gopherjs/branches{/branch}","tags_url":"https://api.github.com/repos/gopherjs/gopherjs/tags","blobs_url":"https://api.github.com/repos/gopherjs/gopherjs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gopherjs/gopherjs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gopherjs/gopherjs/git/refs{/sha}","trees_url":"https://api.github.com/repos/gopherjs/gopherjs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gopherjs/gopherjs/statuses/{sha}","languages_url":"https://api.github.com/repos/gopherjs/gopherjs/languages","stargazers_url":"https://api.github.com/repos/gopherjs/gopherjs/stargazers","contributors_url":"https://api.github.com/repos/gopherjs/gopherjs/contributors","subscribers_url":"https://api.github.com/repos/gopherjs/gopherjs/subscribers","subscription_url":"https://api.github.com/repos/gopherjs/gopherjs/subscription","commits_url":"https://api.github.com/repos/gopherjs/gopherjs/commits{/sha}","git_commits_url":"https://api.github.com/repos/gopherjs/gopherjs/git/commits{/sha}","comments_url":"https://api.github.com/repos/gopherjs/gopherjs/comments{/number}","issue_comment_url":"https://api.github.com/repos/gopherjs/gopherjs/issues/comments{/number}","contents_url":"https://api.github.com/repos/gopherjs/gopherjs/contents/{+path}","compare_url":"https://api.github.com/repos/gopherjs/gopherjs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gopherjs/gopherjs/merges","archive_url":"https://api.github.com/repos/gopherjs/gopherjs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gopherjs/gopherjs/downloads","issues_url":"https://api.github.com/repos/gopherjs/gopherjs/issues{/number}","pulls_url":"https://api.github.com/repos/gopherjs/gopherjs/pulls{/number}","milestones_url":"https://api.github.com/repos/gopherjs/gopherjs/milestones{/number}","notifications_url":"https://api.github.com/repos/gopherjs/gopherjs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gopherjs/gopherjs/labels{/name}","releases_url":"https://api.github.com/repos/gopherjs/gopherjs/releases{/id}","created_at":"2013-08-27T22:23:58Z","updated_at":"2015-04-09T03:54:06Z","pushed_at":"2015-04-09T05:44:50Z","git_url":"git://github.com/gopherjs/gopherjs.git","ssh_url":"git@github.com:gopherjs/gopherjs.git","clone_url":"https://github.com/gopherjs/gopherjs.git","svn_url":"https://github.com/gopherjs/gopherjs","homepage":"","size":7938,"stargazers_count":2629,"watchers_count":2629,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":103,"mirror_url":null,"open_issues_count":12,"forks":103,"open_issues":12,"watchers":2629,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gopherjs/gopherjs/pulls/205"},"html":{"href":"https://github.com/gopherjs/gopherjs/pull/205"},"issue":{"href":"https://api.github.com/repos/gopherjs/gopherjs/issues/205"},"comments":{"href":"https://api.github.com/repos/gopherjs/gopherjs/issues/205/comments"},"review_comments":{"href":"https://api.github.com/repos/gopherjs/gopherjs/pulls/205/comments"},"review_comment":{"href":"https://api.github.com/repos/gopherjs/gopherjs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gopherjs/gopherjs/pulls/205/commits"},"statuses":{"href":"https://api.github.com/repos/gopherjs/gopherjs/statuses/8c71c822c786af4b898dff623c1f9141879f9921"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":20,"deletions":0,"changed_files":2}}