{"action":"created","comment":{"url":"https://api.github.com/repos/angular/angular/pulls/comments/55427974","id":55427974,"diff_hunk":"@@ -238,9 +238,11 @@ export function Class(clsDef: ClassDefinition): ConcreteType {\n }\n \n var Reflect = global.Reflect;\n-if (!(Reflect && Reflect.getMetadata)) {\n-  throw 'reflect-metadata shim is required when using class decorators';\n-}\n+(function checkReflect() {","path":"modules/angular2/src/core/util/decorators.ts","position":7,"original_position":7,"commit_id":"38e95ccfcf20db863ca5cf8facdce1b4e929fe69","original_commit_id":"38e95ccfcf20db863ca5cf8facdce1b4e929fe69","user":{"login":"rkirov","id":95713,"avatar_url":"https://avatars.githubusercontent.com/u/95713?v=3","gravatar_id":"","url":"https://api.github.com/users/rkirov","html_url":"https://github.com/rkirov","followers_url":"https://api.github.com/users/rkirov/followers","following_url":"https://api.github.com/users/rkirov/following{/other_user}","gists_url":"https://api.github.com/users/rkirov/gists{/gist_id}","starred_url":"https://api.github.com/users/rkirov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rkirov/subscriptions","organizations_url":"https://api.github.com/users/rkirov/orgs","repos_url":"https://api.github.com/users/rkirov/repos","events_url":"https://api.github.com/users/rkirov/events{/privacy}","received_events_url":"https://api.github.com/users/rkirov/received_events","type":"User","site_admin":false},"body":"explain why this is done, it is an odd pattern in the middle of a module block. I don't want people to copy the pattern without understanding where it came from.","created_at":"2016-03-08T21:10:45Z","updated_at":"2016-03-08T21:10:45Z","html_url":"https://github.com/angular/angular/pull/7494#discussion_r55427974","pull_request_url":"https://api.github.com/repos/angular/angular/pulls/7494","_links":{"self":{"href":"https://api.github.com/repos/angular/angular/pulls/comments/55427974"},"html":{"href":"https://github.com/angular/angular/pull/7494#discussion_r55427974"},"pull_request":{"href":"https://api.github.com/repos/angular/angular/pulls/7494"}}},"pull_request":{"url":"https://api.github.com/repos/angular/angular/pulls/7494","id":62130550,"html_url":"https://github.com/angular/angular/pull/7494","diff_url":"https://github.com/angular/angular/pull/7494.diff","patch_url":"https://github.com/angular/angular/pull/7494.patch","issue_url":"https://api.github.com/repos/angular/angular/issues/7494","number":7494,"state":"open","locked":false,"title":"fix(closure): don't throw from top-level","user":{"login":"alexeagle","id":47395,"avatar_url":"https://avatars.githubusercontent.com/u/47395?v=3","gravatar_id":"","url":"https://api.github.com/users/alexeagle","html_url":"https://github.com/alexeagle","followers_url":"https://api.github.com/users/alexeagle/followers","following_url":"https://api.github.com/users/alexeagle/following{/other_user}","gists_url":"https://api.github.com/users/alexeagle/gists{/gist_id}","starred_url":"https://api.github.com/users/alexeagle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexeagle/subscriptions","organizations_url":"https://api.github.com/users/alexeagle/orgs","repos_url":"https://api.github.com/users/alexeagle/repos","events_url":"https://api.github.com/users/alexeagle/events{/privacy}","received_events_url":"https://api.github.com/users/alexeagle/received_events","type":"User","site_admin":false},"body":"\r\n\r\nworkaround for http://b/27151095","created_at":"2016-03-08T20:24:30Z","updated_at":"2016-03-08T21:10:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"39914c48c94b0c39b8d0f93e4e19160010a15570","assignee":{"login":"rkirov","id":95713,"avatar_url":"https://avatars.githubusercontent.com/u/95713?v=3","gravatar_id":"","url":"https://api.github.com/users/rkirov","html_url":"https://github.com/rkirov","followers_url":"https://api.github.com/users/rkirov/followers","following_url":"https://api.github.com/users/rkirov/following{/other_user}","gists_url":"https://api.github.com/users/rkirov/gists{/gist_id}","starred_url":"https://api.github.com/users/rkirov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rkirov/subscriptions","organizations_url":"https://api.github.com/users/rkirov/orgs","repos_url":"https://api.github.com/users/rkirov/repos","events_url":"https://api.github.com/users/rkirov/events{/privacy}","received_events_url":"https://api.github.com/users/rkirov/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/angular/angular/pulls/7494/commits","review_comments_url":"https://api.github.com/repos/angular/angular/pulls/7494/comments","review_comment_url":"https://api.github.com/repos/angular/angular/pulls/comments{/number}","comments_url":"https://api.github.com/repos/angular/angular/issues/7494/comments","statuses_url":"https://api.github.com/repos/angular/angular/statuses/38e95ccfcf20db863ca5cf8facdce1b4e929fe69","head":{"label":"alexeagle:reflect_throw","ref":"reflect_throw","sha":"38e95ccfcf20db863ca5cf8facdce1b4e929fe69","user":{"login":"alexeagle","id":47395,"avatar_url":"https://avatars.githubusercontent.com/u/47395?v=3","gravatar_id":"","url":"https://api.github.com/users/alexeagle","html_url":"https://github.com/alexeagle","followers_url":"https://api.github.com/users/alexeagle/followers","following_url":"https://api.github.com/users/alexeagle/following{/other_user}","gists_url":"https://api.github.com/users/alexeagle/gists{/gist_id}","starred_url":"https://api.github.com/users/alexeagle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexeagle/subscriptions","organizations_url":"https://api.github.com/users/alexeagle/orgs","repos_url":"https://api.github.com/users/alexeagle/repos","events_url":"https://api.github.com/users/alexeagle/events{/privacy}","received_events_url":"https://api.github.com/users/alexeagle/received_events","type":"User","site_admin":false},"repo":{"id":30215210,"name":"angular","full_name":"alexeagle/angular","owner":{"login":"alexeagle","id":47395,"avatar_url":"https://avatars.githubusercontent.com/u/47395?v=3","gravatar_id":"","url":"https://api.github.com/users/alexeagle","html_url":"https://github.com/alexeagle","followers_url":"https://api.github.com/users/alexeagle/followers","following_url":"https://api.github.com/users/alexeagle/following{/other_user}","gists_url":"https://api.github.com/users/alexeagle/gists{/gist_id}","starred_url":"https://api.github.com/users/alexeagle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexeagle/subscriptions","organizations_url":"https://api.github.com/users/alexeagle/orgs","repos_url":"https://api.github.com/users/alexeagle/repos","events_url":"https://api.github.com/users/alexeagle/events{/privacy}","received_events_url":"https://api.github.com/users/alexeagle/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/alexeagle/angular","description":"","fork":true,"url":"https://api.github.com/repos/alexeagle/angular","forks_url":"https://api.github.com/repos/alexeagle/angular/forks","keys_url":"https://api.github.com/repos/alexeagle/angular/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alexeagle/angular/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alexeagle/angular/teams","hooks_url":"https://api.github.com/repos/alexeagle/angular/hooks","issue_events_url":"https://api.github.com/repos/alexeagle/angular/issues/events{/number}","events_url":"https://api.github.com/repos/alexeagle/angular/events","assignees_url":"https://api.github.com/repos/alexeagle/angular/assignees{/user}","branches_url":"https://api.github.com/repos/alexeagle/angular/branches{/branch}","tags_url":"https://api.github.com/repos/alexeagle/angular/tags","blobs_url":"https://api.github.com/repos/alexeagle/angular/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alexeagle/angular/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alexeagle/angular/git/refs{/sha}","trees_url":"https://api.github.com/repos/alexeagle/angular/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alexeagle/angular/statuses/{sha}","languages_url":"https://api.github.com/repos/alexeagle/angular/languages","stargazers_url":"https://api.github.com/repos/alexeagle/angular/stargazers","contributors_url":"https://api.github.com/repos/alexeagle/angular/contributors","subscribers_url":"https://api.github.com/repos/alexeagle/angular/subscribers","subscription_url":"https://api.github.com/repos/alexeagle/angular/subscription","commits_url":"https://api.github.com/repos/alexeagle/angular/commits{/sha}","git_commits_url":"https://api.github.com/repos/alexeagle/angular/git/commits{/sha}","comments_url":"https://api.github.com/repos/alexeagle/angular/comments{/number}","issue_comment_url":"https://api.github.com/repos/alexeagle/angular/issues/comments{/number}","contents_url":"https://api.github.com/repos/alexeagle/angular/contents/{+path}","compare_url":"https://api.github.com/repos/alexeagle/angular/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alexeagle/angular/merges","archive_url":"https://api.github.com/repos/alexeagle/angular/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alexeagle/angular/downloads","issues_url":"https://api.github.com/repos/alexeagle/angular/issues{/number}","pulls_url":"https://api.github.com/repos/alexeagle/angular/pulls{/number}","milestones_url":"https://api.github.com/repos/alexeagle/angular/milestones{/number}","notifications_url":"https://api.github.com/repos/alexeagle/angular/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alexeagle/angular/labels{/name}","releases_url":"https://api.github.com/repos/alexeagle/angular/releases{/id}","deployments_url":"https://api.github.com/repos/alexeagle/angular/deployments","created_at":"2015-02-02T23:49:55Z","updated_at":"2016-01-15T21:33:18Z","pushed_at":"2016-03-08T20:24:00Z","git_url":"git://github.com/alexeagle/angular.git","ssh_url":"git@github.com:alexeagle/angular.git","clone_url":"https://github.com/alexeagle/angular.git","svn_url":"https://github.com/alexeagle/angular","homepage":null,"size":149706,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"angular:master","ref":"master","sha":"ef9e40e82ba19e14fc715d6e53ccb76467eabfe1","user":{"login":"angular","id":139426,"avatar_url":"https://avatars.githubusercontent.com/u/139426?v=3","gravatar_id":"","url":"https://api.github.com/users/angular","html_url":"https://github.com/angular","followers_url":"https://api.github.com/users/angular/followers","following_url":"https://api.github.com/users/angular/following{/other_user}","gists_url":"https://api.github.com/users/angular/gists{/gist_id}","starred_url":"https://api.github.com/users/angular/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angular/subscriptions","organizations_url":"https://api.github.com/users/angular/orgs","repos_url":"https://api.github.com/users/angular/repos","events_url":"https://api.github.com/users/angular/events{/privacy}","received_events_url":"https://api.github.com/users/angular/received_events","type":"Organization","site_admin":false},"repo":{"id":24195339,"name":"angular","full_name":"angular/angular","owner":{"login":"angular","id":139426,"avatar_url":"https://avatars.githubusercontent.com/u/139426?v=3","gravatar_id":"","url":"https://api.github.com/users/angular","html_url":"https://github.com/angular","followers_url":"https://api.github.com/users/angular/followers","following_url":"https://api.github.com/users/angular/following{/other_user}","gists_url":"https://api.github.com/users/angular/gists{/gist_id}","starred_url":"https://api.github.com/users/angular/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angular/subscriptions","organizations_url":"https://api.github.com/users/angular/orgs","repos_url":"https://api.github.com/users/angular/repos","events_url":"https://api.github.com/users/angular/events{/privacy}","received_events_url":"https://api.github.com/users/angular/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/angular/angular","description":"","fork":false,"url":"https://api.github.com/repos/angular/angular","forks_url":"https://api.github.com/repos/angular/angular/forks","keys_url":"https://api.github.com/repos/angular/angular/keys{/key_id}","collaborators_url":"https://api.github.com/repos/angular/angular/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/angular/angular/teams","hooks_url":"https://api.github.com/repos/angular/angular/hooks","issue_events_url":"https://api.github.com/repos/angular/angular/issues/events{/number}","events_url":"https://api.github.com/repos/angular/angular/events","assignees_url":"https://api.github.com/repos/angular/angular/assignees{/user}","branches_url":"https://api.github.com/repos/angular/angular/branches{/branch}","tags_url":"https://api.github.com/repos/angular/angular/tags","blobs_url":"https://api.github.com/repos/angular/angular/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/angular/angular/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/angular/angular/git/refs{/sha}","trees_url":"https://api.github.com/repos/angular/angular/git/trees{/sha}","statuses_url":"https://api.github.com/repos/angular/angular/statuses/{sha}","languages_url":"https://api.github.com/repos/angular/angular/languages","stargazers_url":"https://api.github.com/repos/angular/angular/stargazers","contributors_url":"https://api.github.com/repos/angular/angular/contributors","subscribers_url":"https://api.github.com/repos/angular/angular/subscribers","subscription_url":"https://api.github.com/repos/angular/angular/subscription","commits_url":"https://api.github.com/repos/angular/angular/commits{/sha}","git_commits_url":"https://api.github.com/repos/angular/angular/git/commits{/sha}","comments_url":"https://api.github.com/repos/angular/angular/comments{/number}","issue_comment_url":"https://api.github.com/repos/angular/angular/issues/comments{/number}","contents_url":"https://api.github.com/repos/angular/angular/contents/{+path}","compare_url":"https://api.github.com/repos/angular/angular/compare/{base}...{head}","merges_url":"https://api.github.com/repos/angular/angular/merges","archive_url":"https://api.github.com/repos/angular/angular/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/angular/angular/downloads","issues_url":"https://api.github.com/repos/angular/angular/issues{/number}","pulls_url":"https://api.github.com/repos/angular/angular/pulls{/number}","milestones_url":"https://api.github.com/repos/angular/angular/milestones{/number}","notifications_url":"https://api.github.com/repos/angular/angular/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/angular/angular/labels{/name}","releases_url":"https://api.github.com/repos/angular/angular/releases{/id}","deployments_url":"https://api.github.com/repos/angular/angular/deployments","created_at":"2014-09-18T16:12:01Z","updated_at":"2016-03-08T20:51:59Z","pushed_at":"2016-03-08T20:24:30Z","git_url":"git://github.com/angular/angular.git","ssh_url":"git@github.com:angular/angular.git","clone_url":"https://github.com/angular/angular.git","svn_url":"https://github.com/angular/angular","homepage":"https://angular.io","size":217007,"stargazers_count":9605,"watchers_count":9605,"language":"TypeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2506,"mirror_url":null,"open_issues_count":1253,"forks":2506,"open_issues":1253,"watchers":9605,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/angular/angular/pulls/7494"},"html":{"href":"https://github.com/angular/angular/pull/7494"},"issue":{"href":"https://api.github.com/repos/angular/angular/issues/7494"},"comments":{"href":"https://api.github.com/repos/angular/angular/issues/7494/comments"},"review_comments":{"href":"https://api.github.com/repos/angular/angular/pulls/7494/comments"},"review_comment":{"href":"https://api.github.com/repos/angular/angular/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/angular/angular/pulls/7494/commits"},"statuses":{"href":"https://api.github.com/repos/angular/angular/statuses/38e95ccfcf20db863ca5cf8facdce1b4e929fe69"}}}}