{"action":"opened","number":939,"pull_request":{"url":"https://api.github.com/repos/babel/babel/pulls/939","id":30385084,"html_url":"https://github.com/babel/babel/pull/939","diff_url":"https://github.com/babel/babel/pull/939.diff","patch_url":"https://github.com/babel/babel/pull/939.patch","issue_url":"https://api.github.com/repos/babel/babel/issues/939","number":939,"state":"open","locked":false,"title":"Remove undefined System variable declarations","user":{"login":"guybedford","id":598730,"avatar_url":"https://avatars.githubusercontent.com/u/598730?v=3","gravatar_id":"","url":"https://api.github.com/users/guybedford","html_url":"https://github.com/guybedford","followers_url":"https://api.github.com/users/guybedford/followers","following_url":"https://api.github.com/users/guybedford/following{/other_user}","gists_url":"https://api.github.com/users/guybedford/gists{/gist_id}","starred_url":"https://api.github.com/users/guybedford/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guybedford/subscriptions","organizations_url":"https://api.github.com/users/guybedford/orgs","repos_url":"https://api.github.com/users/guybedford/repos","events_url":"https://api.github.com/users/guybedford/events{/privacy}","received_events_url":"https://api.github.com/users/guybedford/received_events","type":"User","site_admin":false},"body":"I came across an issue with code looking like:\r\n\r\n```javascript\r\np = 5;\r\nexport var p;\r\n```\r\n\r\nIn the above, the variable should be set to value 5, but in Babel it is being set to undefined in the variable declaration statement itself.\r\n\r\nIf the declaration statement has no assignment present, then I think we should probably just leave it out?\r\n\r\nThis is not critical, but important for completeness.","created_at":"2015-03-03T15:51:29Z","updated_at":"2015-03-03T15:51:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/babel/babel/pulls/939/commits","review_comments_url":"https://api.github.com/repos/babel/babel/pulls/939/comments","review_comment_url":"https://api.github.com/repos/babel/babel/pulls/comments{/number}","comments_url":"https://api.github.com/repos/babel/babel/issues/939/comments","statuses_url":"https://api.github.com/repos/babel/babel/statuses/bd0cfddac0aa13b38a8f46e1ddc65c5ca4a9b576","head":{"label":"guybedford:master","ref":"master","sha":"bd0cfddac0aa13b38a8f46e1ddc65c5ca4a9b576","user":{"login":"guybedford","id":598730,"avatar_url":"https://avatars.githubusercontent.com/u/598730?v=3","gravatar_id":"","url":"https://api.github.com/users/guybedford","html_url":"https://github.com/guybedford","followers_url":"https://api.github.com/users/guybedford/followers","following_url":"https://api.github.com/users/guybedford/following{/other_user}","gists_url":"https://api.github.com/users/guybedford/gists{/gist_id}","starred_url":"https://api.github.com/users/guybedford/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guybedford/subscriptions","organizations_url":"https://api.github.com/users/guybedford/orgs","repos_url":"https://api.github.com/users/guybedford/repos","events_url":"https://api.github.com/users/guybedford/events{/privacy}","received_events_url":"https://api.github.com/users/guybedford/received_events","type":"User","site_admin":false},"repo":{"id":27077601,"name":"babel","full_name":"guybedford/babel","owner":{"login":"guybedford","id":598730,"avatar_url":"https://avatars.githubusercontent.com/u/598730?v=3","gravatar_id":"","url":"https://api.github.com/users/guybedford","html_url":"https://github.com/guybedford","followers_url":"https://api.github.com/users/guybedford/followers","following_url":"https://api.github.com/users/guybedford/following{/other_user}","gists_url":"https://api.github.com/users/guybedford/gists{/gist_id}","starred_url":"https://api.github.com/users/guybedford/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guybedford/subscriptions","organizations_url":"https://api.github.com/users/guybedford/orgs","repos_url":"https://api.github.com/users/guybedford/repos","events_url":"https://api.github.com/users/guybedford/events{/privacy}","received_events_url":"https://api.github.com/users/guybedford/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/guybedford/babel","description":"Turn ES6+ code into readable vanilla ES5 with source maps and more!","fork":true,"url":"https://api.github.com/repos/guybedford/babel","forks_url":"https://api.github.com/repos/guybedford/babel/forks","keys_url":"https://api.github.com/repos/guybedford/babel/keys{/key_id}","collaborators_url":"https://api.github.com/repos/guybedford/babel/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/guybedford/babel/teams","hooks_url":"https://api.github.com/repos/guybedford/babel/hooks","issue_events_url":"https://api.github.com/repos/guybedford/babel/issues/events{/number}","events_url":"https://api.github.com/repos/guybedford/babel/events","assignees_url":"https://api.github.com/repos/guybedford/babel/assignees{/user}","branches_url":"https://api.github.com/repos/guybedford/babel/branches{/branch}","tags_url":"https://api.github.com/repos/guybedford/babel/tags","blobs_url":"https://api.github.com/repos/guybedford/babel/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/guybedford/babel/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/guybedford/babel/git/refs{/sha}","trees_url":"https://api.github.com/repos/guybedford/babel/git/trees{/sha}","statuses_url":"https://api.github.com/repos/guybedford/babel/statuses/{sha}","languages_url":"https://api.github.com/repos/guybedford/babel/languages","stargazers_url":"https://api.github.com/repos/guybedford/babel/stargazers","contributors_url":"https://api.github.com/repos/guybedford/babel/contributors","subscribers_url":"https://api.github.com/repos/guybedford/babel/subscribers","subscription_url":"https://api.github.com/repos/guybedford/babel/subscription","commits_url":"https://api.github.com/repos/guybedford/babel/commits{/sha}","git_commits_url":"https://api.github.com/repos/guybedford/babel/git/commits{/sha}","comments_url":"https://api.github.com/repos/guybedford/babel/comments{/number}","issue_comment_url":"https://api.github.com/repos/guybedford/babel/issues/comments{/number}","contents_url":"https://api.github.com/repos/guybedford/babel/contents/{+path}","compare_url":"https://api.github.com/repos/guybedford/babel/compare/{base}...{head}","merges_url":"https://api.github.com/repos/guybedford/babel/merges","archive_url":"https://api.github.com/repos/guybedford/babel/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/guybedford/babel/downloads","issues_url":"https://api.github.com/repos/guybedford/babel/issues{/number}","pulls_url":"https://api.github.com/repos/guybedford/babel/pulls{/number}","milestones_url":"https://api.github.com/repos/guybedford/babel/milestones{/number}","notifications_url":"https://api.github.com/repos/guybedford/babel/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/guybedford/babel/labels{/name}","releases_url":"https://api.github.com/repos/guybedford/babel/releases{/id}","created_at":"2014-11-24T13:49:10Z","updated_at":"2015-03-03T15:49:56Z","pushed_at":"2015-03-03T15:50:01Z","git_url":"git://github.com/guybedford/babel.git","ssh_url":"git@github.com:guybedford/babel.git","clone_url":"https://github.com/guybedford/babel.git","svn_url":"https://github.com/guybedford/babel","homepage":"https://6to5.github.io/","size":3077,"stargazers_count":1,"watchers_count":1,"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":1,"default_branch":"master"}},"base":{"label":"babel:master","ref":"master","sha":"2eaeebcce493ca2a2e33aa6357f0d2e625beef60","user":{"login":"babel","id":9637642,"avatar_url":"https://avatars.githubusercontent.com/u/9637642?v=3","gravatar_id":"","url":"https://api.github.com/users/babel","html_url":"https://github.com/babel","followers_url":"https://api.github.com/users/babel/followers","following_url":"https://api.github.com/users/babel/following{/other_user}","gists_url":"https://api.github.com/users/babel/gists{/gist_id}","starred_url":"https://api.github.com/users/babel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/babel/subscriptions","organizations_url":"https://api.github.com/users/babel/orgs","repos_url":"https://api.github.com/users/babel/repos","events_url":"https://api.github.com/users/babel/events{/privacy}","received_events_url":"https://api.github.com/users/babel/received_events","type":"Organization","site_admin":false},"repo":{"id":24560307,"name":"babel","full_name":"babel/babel","owner":{"login":"babel","id":9637642,"avatar_url":"https://avatars.githubusercontent.com/u/9637642?v=3","gravatar_id":"","url":"https://api.github.com/users/babel","html_url":"https://github.com/babel","followers_url":"https://api.github.com/users/babel/followers","following_url":"https://api.github.com/users/babel/following{/other_user}","gists_url":"https://api.github.com/users/babel/gists{/gist_id}","starred_url":"https://api.github.com/users/babel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/babel/subscriptions","organizations_url":"https://api.github.com/users/babel/orgs","repos_url":"https://api.github.com/users/babel/repos","events_url":"https://api.github.com/users/babel/events{/privacy}","received_events_url":"https://api.github.com/users/babel/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/babel/babel","description":"Babel is a transpiler for writing next generation JavaScript. (Previously 6to5)","fork":false,"url":"https://api.github.com/repos/babel/babel","forks_url":"https://api.github.com/repos/babel/babel/forks","keys_url":"https://api.github.com/repos/babel/babel/keys{/key_id}","collaborators_url":"https://api.github.com/repos/babel/babel/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/babel/babel/teams","hooks_url":"https://api.github.com/repos/babel/babel/hooks","issue_events_url":"https://api.github.com/repos/babel/babel/issues/events{/number}","events_url":"https://api.github.com/repos/babel/babel/events","assignees_url":"https://api.github.com/repos/babel/babel/assignees{/user}","branches_url":"https://api.github.com/repos/babel/babel/branches{/branch}","tags_url":"https://api.github.com/repos/babel/babel/tags","blobs_url":"https://api.github.com/repos/babel/babel/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/babel/babel/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/babel/babel/git/refs{/sha}","trees_url":"https://api.github.com/repos/babel/babel/git/trees{/sha}","statuses_url":"https://api.github.com/repos/babel/babel/statuses/{sha}","languages_url":"https://api.github.com/repos/babel/babel/languages","stargazers_url":"https://api.github.com/repos/babel/babel/stargazers","contributors_url":"https://api.github.com/repos/babel/babel/contributors","subscribers_url":"https://api.github.com/repos/babel/babel/subscribers","subscription_url":"https://api.github.com/repos/babel/babel/subscription","commits_url":"https://api.github.com/repos/babel/babel/commits{/sha}","git_commits_url":"https://api.github.com/repos/babel/babel/git/commits{/sha}","comments_url":"https://api.github.com/repos/babel/babel/comments{/number}","issue_comment_url":"https://api.github.com/repos/babel/babel/issues/comments{/number}","contents_url":"https://api.github.com/repos/babel/babel/contents/{+path}","compare_url":"https://api.github.com/repos/babel/babel/compare/{base}...{head}","merges_url":"https://api.github.com/repos/babel/babel/merges","archive_url":"https://api.github.com/repos/babel/babel/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/babel/babel/downloads","issues_url":"https://api.github.com/repos/babel/babel/issues{/number}","pulls_url":"https://api.github.com/repos/babel/babel/pulls{/number}","milestones_url":"https://api.github.com/repos/babel/babel/milestones{/number}","notifications_url":"https://api.github.com/repos/babel/babel/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/babel/babel/labels{/name}","releases_url":"https://api.github.com/repos/babel/babel/releases{/id}","created_at":"2014-09-28T13:38:23Z","updated_at":"2015-03-03T15:12:00Z","pushed_at":"2015-03-03T12:39:03Z","git_url":"git://github.com/babel/babel.git","ssh_url":"git@github.com:babel/babel.git","clone_url":"https://github.com/babel/babel.git","svn_url":"https://github.com/babel/babel","homepage":"https://babeljs.io/","size":12239,"stargazers_count":4154,"watchers_count":4154,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":156,"mirror_url":null,"open_issues_count":19,"forks":156,"open_issues":19,"watchers":4154,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/babel/babel/pulls/939"},"html":{"href":"https://github.com/babel/babel/pull/939"},"issue":{"href":"https://api.github.com/repos/babel/babel/issues/939"},"comments":{"href":"https://api.github.com/repos/babel/babel/issues/939/comments"},"review_comments":{"href":"https://api.github.com/repos/babel/babel/pulls/939/comments"},"review_comment":{"href":"https://api.github.com/repos/babel/babel/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/babel/babel/pulls/939/commits"},"statuses":{"href":"https://api.github.com/repos/babel/babel/statuses/bd0cfddac0aa13b38a8f46e1ddc65c5ca4a9b576"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":3,"deletions":3,"changed_files":2}}