{"action":"opened","number":3,"pull_request":{"url":"https://api.github.com/repos/fraserxu/babel-jsxgettext/pulls/3","id":57976780,"html_url":"https://github.com/fraserxu/babel-jsxgettext/pull/3","diff_url":"https://github.com/fraserxu/babel-jsxgettext/pull/3.diff","patch_url":"https://github.com/fraserxu/babel-jsxgettext/pull/3.patch","issue_url":"https://api.github.com/repos/fraserxu/babel-jsxgettext/issues/3","number":3,"state":"open","locked":false,"title":"Don't crash on JSX comments.","user":{"login":"aaugustin","id":788910,"avatar_url":"https://avatars.githubusercontent.com/u/788910?v=3","gravatar_id":"","url":"https://api.github.com/users/aaugustin","html_url":"https://github.com/aaugustin","followers_url":"https://api.github.com/users/aaugustin/followers","following_url":"https://api.github.com/users/aaugustin/following{/other_user}","gists_url":"https://api.github.com/users/aaugustin/gists{/gist_id}","starred_url":"https://api.github.com/users/aaugustin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaugustin/subscriptions","organizations_url":"https://api.github.com/users/aaugustin/orgs","repos_url":"https://api.github.com/users/aaugustin/repos","events_url":"https://api.github.com/users/aaugustin/events{/privacy}","received_events_url":"https://api.github.com/users/aaugustin/received_events","type":"User","site_admin":false},"body":"This PR updates a test file to exhibit the bug and proposes a fix.\r\n\r\nWithout the fix, I'm getting this stack trace:\r\n\r\n```\r\nbabel-jsxgettext/node_modules/acorn/dist/walk.js:38\r\n    base[type](node, st, c);\r\n              ^\r\n\r\nTypeError: base[type] is not a function\r\n    at c (babel-jsxgettext/node_modules/acorn/dist/walk.js:38:15)\r\n    at Object.JSXExpressionContainer (babel-jsxgettext/lib/base.js:11:5)\r\n    at c (babel-jsxgettext/node_modules/acorn/dist/walk.js:38:15)\r\n    at babel-jsxgettext/lib/base.js:7:7\r\n    at Array.forEach (native)\r\n    at Object.JSXElement (babel-jsxgettext/lib/base.js:6:19)\r\n    at c (babel-jsxgettext/node_modules/acorn/dist/walk.js:38:15)\r\n    at Object.skipThrough (babel-jsxgettext/node_modules/acorn/dist/walk.js:169:3)\r\n    at c (babel-jsxgettext/node_modules/acorn/dist/walk.js:38:15)\r\n    at Object.base.BinaryExpression.base.LogicalExpression (babel-jsxgettext/node_modules/acorn/dist/walk.js:317:3)\r\n```","created_at":"2016-02-02T11:57:34Z","updated_at":"2016-02-02T11:57:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/fraserxu/babel-jsxgettext/pulls/3/commits","review_comments_url":"https://api.github.com/repos/fraserxu/babel-jsxgettext/pulls/3/comments","review_comment_url":"https://api.github.com/repos/fraserxu/babel-jsxgettext/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fraserxu/babel-jsxgettext/issues/3/comments","statuses_url":"https://api.github.com/repos/fraserxu/babel-jsxgettext/statuses/6b82d0b2873cdf75cc53736d6a2c6502357b5cf2","head":{"label":"aaugustin:master","ref":"master","sha":"6b82d0b2873cdf75cc53736d6a2c6502357b5cf2","user":{"login":"aaugustin","id":788910,"avatar_url":"https://avatars.githubusercontent.com/u/788910?v=3","gravatar_id":"","url":"https://api.github.com/users/aaugustin","html_url":"https://github.com/aaugustin","followers_url":"https://api.github.com/users/aaugustin/followers","following_url":"https://api.github.com/users/aaugustin/following{/other_user}","gists_url":"https://api.github.com/users/aaugustin/gists{/gist_id}","starred_url":"https://api.github.com/users/aaugustin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaugustin/subscriptions","organizations_url":"https://api.github.com/users/aaugustin/orgs","repos_url":"https://api.github.com/users/aaugustin/repos","events_url":"https://api.github.com/users/aaugustin/events{/privacy}","received_events_url":"https://api.github.com/users/aaugustin/received_events","type":"User","site_admin":false},"repo":{"id":50916803,"name":"babel-jsxgettext","full_name":"aaugustin/babel-jsxgettext","owner":{"login":"aaugustin","id":788910,"avatar_url":"https://avatars.githubusercontent.com/u/788910?v=3","gravatar_id":"","url":"https://api.github.com/users/aaugustin","html_url":"https://github.com/aaugustin","followers_url":"https://api.github.com/users/aaugustin/followers","following_url":"https://api.github.com/users/aaugustin/following{/other_user}","gists_url":"https://api.github.com/users/aaugustin/gists{/gist_id}","starred_url":"https://api.github.com/users/aaugustin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaugustin/subscriptions","organizations_url":"https://api.github.com/users/aaugustin/orgs","repos_url":"https://api.github.com/users/aaugustin/repos","events_url":"https://api.github.com/users/aaugustin/events{/privacy}","received_events_url":"https://api.github.com/users/aaugustin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/aaugustin/babel-jsxgettext","description":"A tool like jsxgettext, but works for es6 + jsx that babel support","fork":true,"url":"https://api.github.com/repos/aaugustin/babel-jsxgettext","forks_url":"https://api.github.com/repos/aaugustin/babel-jsxgettext/forks","keys_url":"https://api.github.com/repos/aaugustin/babel-jsxgettext/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aaugustin/babel-jsxgettext/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aaugustin/babel-jsxgettext/teams","hooks_url":"https://api.github.com/repos/aaugustin/babel-jsxgettext/hooks","issue_events_url":"https://api.github.com/repos/aaugustin/babel-jsxgettext/issues/events{/number}","events_url":"https://api.github.com/repos/aaugustin/babel-jsxgettext/events","assignees_url":"https://api.github.com/repos/aaugustin/babel-jsxgettext/assignees{/user}","branches_url":"https://api.github.com/repos/aaugustin/babel-jsxgettext/branches{/branch}","tags_url":"https://api.github.com/repos/aaugustin/babel-jsxgettext/tags","blobs_url":"https://api.github.com/repos/aaugustin/babel-jsxgettext/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aaugustin/babel-jsxgettext/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aaugustin/babel-jsxgettext/git/refs{/sha}","trees_url":"https://api.github.com/repos/aaugustin/babel-jsxgettext/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aaugustin/babel-jsxgettext/statuses/{sha}","languages_url":"https://api.github.com/repos/aaugustin/babel-jsxgettext/languages","stargazers_url":"https://api.github.com/repos/aaugustin/babel-jsxgettext/stargazers","contributors_url":"https://api.github.com/repos/aaugustin/babel-jsxgettext/contributors","subscribers_url":"https://api.github.com/repos/aaugustin/babel-jsxgettext/subscribers","subscription_url":"https://api.github.com/repos/aaugustin/babel-jsxgettext/subscription","commits_url":"https://api.github.com/repos/aaugustin/babel-jsxgettext/commits{/sha}","git_commits_url":"https://api.github.com/repos/aaugustin/babel-jsxgettext/git/commits{/sha}","comments_url":"https://api.github.com/repos/aaugustin/babel-jsxgettext/comments{/number}","issue_comment_url":"https://api.github.com/repos/aaugustin/babel-jsxgettext/issues/comments{/number}","contents_url":"https://api.github.com/repos/aaugustin/babel-jsxgettext/contents/{+path}","compare_url":"https://api.github.com/repos/aaugustin/babel-jsxgettext/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aaugustin/babel-jsxgettext/merges","archive_url":"https://api.github.com/repos/aaugustin/babel-jsxgettext/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aaugustin/babel-jsxgettext/downloads","issues_url":"https://api.github.com/repos/aaugustin/babel-jsxgettext/issues{/number}","pulls_url":"https://api.github.com/repos/aaugustin/babel-jsxgettext/pulls{/number}","milestones_url":"https://api.github.com/repos/aaugustin/babel-jsxgettext/milestones{/number}","notifications_url":"https://api.github.com/repos/aaugustin/babel-jsxgettext/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aaugustin/babel-jsxgettext/labels{/name}","releases_url":"https://api.github.com/repos/aaugustin/babel-jsxgettext/releases{/id}","deployments_url":"https://api.github.com/repos/aaugustin/babel-jsxgettext/deployments","created_at":"2016-02-02T11:47:02Z","updated_at":"2016-02-02T11:47:03Z","pushed_at":"2016-02-02T11:55:46Z","git_url":"git://github.com/aaugustin/babel-jsxgettext.git","ssh_url":"git@github.com:aaugustin/babel-jsxgettext.git","clone_url":"https://github.com/aaugustin/babel-jsxgettext.git","svn_url":"https://github.com/aaugustin/babel-jsxgettext","homepage":null,"size":17,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"fraserxu:master","ref":"master","sha":"b21953b01355db0c49595fbbc24eb99a4ca59512","user":{"login":"fraserxu","id":1183541,"avatar_url":"https://avatars.githubusercontent.com/u/1183541?v=3","gravatar_id":"","url":"https://api.github.com/users/fraserxu","html_url":"https://github.com/fraserxu","followers_url":"https://api.github.com/users/fraserxu/followers","following_url":"https://api.github.com/users/fraserxu/following{/other_user}","gists_url":"https://api.github.com/users/fraserxu/gists{/gist_id}","starred_url":"https://api.github.com/users/fraserxu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fraserxu/subscriptions","organizations_url":"https://api.github.com/users/fraserxu/orgs","repos_url":"https://api.github.com/users/fraserxu/repos","events_url":"https://api.github.com/users/fraserxu/events{/privacy}","received_events_url":"https://api.github.com/users/fraserxu/received_events","type":"User","site_admin":false},"repo":{"id":43045970,"name":"babel-jsxgettext","full_name":"fraserxu/babel-jsxgettext","owner":{"login":"fraserxu","id":1183541,"avatar_url":"https://avatars.githubusercontent.com/u/1183541?v=3","gravatar_id":"","url":"https://api.github.com/users/fraserxu","html_url":"https://github.com/fraserxu","followers_url":"https://api.github.com/users/fraserxu/followers","following_url":"https://api.github.com/users/fraserxu/following{/other_user}","gists_url":"https://api.github.com/users/fraserxu/gists{/gist_id}","starred_url":"https://api.github.com/users/fraserxu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fraserxu/subscriptions","organizations_url":"https://api.github.com/users/fraserxu/orgs","repos_url":"https://api.github.com/users/fraserxu/repos","events_url":"https://api.github.com/users/fraserxu/events{/privacy}","received_events_url":"https://api.github.com/users/fraserxu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/fraserxu/babel-jsxgettext","description":"A tool like jsxgettext, but works for es6 + jsx that babel support","fork":false,"url":"https://api.github.com/repos/fraserxu/babel-jsxgettext","forks_url":"https://api.github.com/repos/fraserxu/babel-jsxgettext/forks","keys_url":"https://api.github.com/repos/fraserxu/babel-jsxgettext/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fraserxu/babel-jsxgettext/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fraserxu/babel-jsxgettext/teams","hooks_url":"https://api.github.com/repos/fraserxu/babel-jsxgettext/hooks","issue_events_url":"https://api.github.com/repos/fraserxu/babel-jsxgettext/issues/events{/number}","events_url":"https://api.github.com/repos/fraserxu/babel-jsxgettext/events","assignees_url":"https://api.github.com/repos/fraserxu/babel-jsxgettext/assignees{/user}","branches_url":"https://api.github.com/repos/fraserxu/babel-jsxgettext/branches{/branch}","tags_url":"https://api.github.com/repos/fraserxu/babel-jsxgettext/tags","blobs_url":"https://api.github.com/repos/fraserxu/babel-jsxgettext/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fraserxu/babel-jsxgettext/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fraserxu/babel-jsxgettext/git/refs{/sha}","trees_url":"https://api.github.com/repos/fraserxu/babel-jsxgettext/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fraserxu/babel-jsxgettext/statuses/{sha}","languages_url":"https://api.github.com/repos/fraserxu/babel-jsxgettext/languages","stargazers_url":"https://api.github.com/repos/fraserxu/babel-jsxgettext/stargazers","contributors_url":"https://api.github.com/repos/fraserxu/babel-jsxgettext/contributors","subscribers_url":"https://api.github.com/repos/fraserxu/babel-jsxgettext/subscribers","subscription_url":"https://api.github.com/repos/fraserxu/babel-jsxgettext/subscription","commits_url":"https://api.github.com/repos/fraserxu/babel-jsxgettext/commits{/sha}","git_commits_url":"https://api.github.com/repos/fraserxu/babel-jsxgettext/git/commits{/sha}","comments_url":"https://api.github.com/repos/fraserxu/babel-jsxgettext/comments{/number}","issue_comment_url":"https://api.github.com/repos/fraserxu/babel-jsxgettext/issues/comments{/number}","contents_url":"https://api.github.com/repos/fraserxu/babel-jsxgettext/contents/{+path}","compare_url":"https://api.github.com/repos/fraserxu/babel-jsxgettext/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fraserxu/babel-jsxgettext/merges","archive_url":"https://api.github.com/repos/fraserxu/babel-jsxgettext/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fraserxu/babel-jsxgettext/downloads","issues_url":"https://api.github.com/repos/fraserxu/babel-jsxgettext/issues{/number}","pulls_url":"https://api.github.com/repos/fraserxu/babel-jsxgettext/pulls{/number}","milestones_url":"https://api.github.com/repos/fraserxu/babel-jsxgettext/milestones{/number}","notifications_url":"https://api.github.com/repos/fraserxu/babel-jsxgettext/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fraserxu/babel-jsxgettext/labels{/name}","releases_url":"https://api.github.com/repos/fraserxu/babel-jsxgettext/releases{/id}","deployments_url":"https://api.github.com/repos/fraserxu/babel-jsxgettext/deployments","created_at":"2015-09-24T05:04:44Z","updated_at":"2015-12-21T15:33:12Z","pushed_at":"2015-10-22T12:18:44Z","git_url":"git://github.com/fraserxu/babel-jsxgettext.git","ssh_url":"git@github.com:fraserxu/babel-jsxgettext.git","clone_url":"https://github.com/fraserxu/babel-jsxgettext.git","svn_url":"https://github.com/fraserxu/babel-jsxgettext","homepage":null,"size":160,"stargazers_count":7,"watchers_count":7,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":3,"forks":3,"open_issues":3,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fraserxu/babel-jsxgettext/pulls/3"},"html":{"href":"https://github.com/fraserxu/babel-jsxgettext/pull/3"},"issue":{"href":"https://api.github.com/repos/fraserxu/babel-jsxgettext/issues/3"},"comments":{"href":"https://api.github.com/repos/fraserxu/babel-jsxgettext/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/fraserxu/babel-jsxgettext/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/fraserxu/babel-jsxgettext/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fraserxu/babel-jsxgettext/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/fraserxu/babel-jsxgettext/statuses/6b82d0b2873cdf75cc53736d6a2c6502357b5cf2"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":4,"deletions":0,"changed_files":2}}