{"action":"created","comment":{"url":"https://api.github.com/repos/BloombergMedia/bluebird/pulls/comments/37024644","id":37024644,"diff_hunk":"@@ -453,7 +453,12 @@ var fireGlobalEvent = (function() {\n         } catch (e) {}\n         if (!customEventWorks) {\n             try {\n-                var event = document.createEvent(\"CustomEvent\");\n+                var event;\n+                if (document.createEventObject) {","path":"src/captured_trace.js","position":null,"original_position":6,"commit_id":"6056b08a1334710fbd7462892ec8911b8236b160","original_commit_id":"b65a9c389e5f34e223d8b1f8dd15086d20923e7a","user":{"login":"stsvilik","id":142800,"avatar_url":"https://avatars.githubusercontent.com/u/142800?v=3","gravatar_id":"","url":"https://api.github.com/users/stsvilik","html_url":"https://github.com/stsvilik","followers_url":"https://api.github.com/users/stsvilik/followers","following_url":"https://api.github.com/users/stsvilik/following{/other_user}","gists_url":"https://api.github.com/users/stsvilik/gists{/gist_id}","starred_url":"https://api.github.com/users/stsvilik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stsvilik/subscriptions","organizations_url":"https://api.github.com/users/stsvilik/orgs","repos_url":"https://api.github.com/users/stsvilik/repos","events_url":"https://api.github.com/users/stsvilik/events{/privacy}","received_events_url":"https://api.github.com/users/stsvilik/received_events","type":"User","site_admin":false},"body":"If you're explicitly checking for presence of the method, then why do you you need a try/catch?","created_at":"2015-08-13T20:59:30Z","updated_at":"2015-08-13T20:59:30Z","html_url":"https://github.com/BloombergMedia/bluebird/pull/1#discussion_r37024644","pull_request_url":"https://api.github.com/repos/BloombergMedia/bluebird/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/BloombergMedia/bluebird/pulls/comments/37024644"},"html":{"href":"https://github.com/BloombergMedia/bluebird/pull/1#discussion_r37024644"},"pull_request":{"href":"https://api.github.com/repos/BloombergMedia/bluebird/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/BloombergMedia/bluebird/pulls/1","id":42294142,"html_url":"https://github.com/BloombergMedia/bluebird/pull/1","diff_url":"https://github.com/BloombergMedia/bluebird/pull/1.diff","patch_url":"https://github.com/BloombergMedia/bluebird/pull/1.patch","issue_url":"https://api.github.com/repos/BloombergMedia/bluebird/issues/1","number":1,"state":"open","locked":false,"title":"[DL] (WEB-5100) Memory leak in bluebird","user":{"login":"davydog187","id":1019721,"avatar_url":"https://avatars.githubusercontent.com/u/1019721?v=3","gravatar_id":"","url":"https://api.github.com/users/davydog187","html_url":"https://github.com/davydog187","followers_url":"https://api.github.com/users/davydog187/followers","following_url":"https://api.github.com/users/davydog187/following{/other_user}","gists_url":"https://api.github.com/users/davydog187/gists{/gist_id}","starred_url":"https://api.github.com/users/davydog187/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davydog187/subscriptions","organizations_url":"https://api.github.com/users/davydog187/orgs","repos_url":"https://api.github.com/users/davydog187/repos","events_url":"https://api.github.com/users/davydog187/events{/privacy}","received_events_url":"https://api.github.com/users/davydog187/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-08-12T21:58:49Z","updated_at":"2015-08-13T20:59:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9c46a8c3d2de208d68c2bbaa2cbd95c469d7ec88","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/BloombergMedia/bluebird/pulls/1/commits","review_comments_url":"https://api.github.com/repos/BloombergMedia/bluebird/pulls/1/comments","review_comment_url":"https://api.github.com/repos/BloombergMedia/bluebird/pulls/comments{/number}","comments_url":"https://api.github.com/repos/BloombergMedia/bluebird/issues/1/comments","statuses_url":"https://api.github.com/repos/BloombergMedia/bluebird/statuses/6056b08a1334710fbd7462892ec8911b8236b160","head":{"label":"BloombergMedia:feature/fix-memory-leaks","ref":"feature/fix-memory-leaks","sha":"6056b08a1334710fbd7462892ec8911b8236b160","user":{"login":"BloombergMedia","id":9340091,"avatar_url":"https://avatars.githubusercontent.com/u/9340091?v=3","gravatar_id":"","url":"https://api.github.com/users/BloombergMedia","html_url":"https://github.com/BloombergMedia","followers_url":"https://api.github.com/users/BloombergMedia/followers","following_url":"https://api.github.com/users/BloombergMedia/following{/other_user}","gists_url":"https://api.github.com/users/BloombergMedia/gists{/gist_id}","starred_url":"https://api.github.com/users/BloombergMedia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BloombergMedia/subscriptions","organizations_url":"https://api.github.com/users/BloombergMedia/orgs","repos_url":"https://api.github.com/users/BloombergMedia/repos","events_url":"https://api.github.com/users/BloombergMedia/events{/privacy}","received_events_url":"https://api.github.com/users/BloombergMedia/received_events","type":"Organization","site_admin":false},"repo":{"id":40625611,"name":"bluebird","full_name":"BloombergMedia/bluebird","owner":{"login":"BloombergMedia","id":9340091,"avatar_url":"https://avatars.githubusercontent.com/u/9340091?v=3","gravatar_id":"","url":"https://api.github.com/users/BloombergMedia","html_url":"https://github.com/BloombergMedia","followers_url":"https://api.github.com/users/BloombergMedia/followers","following_url":"https://api.github.com/users/BloombergMedia/following{/other_user}","gists_url":"https://api.github.com/users/BloombergMedia/gists{/gist_id}","starred_url":"https://api.github.com/users/BloombergMedia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BloombergMedia/subscriptions","organizations_url":"https://api.github.com/users/BloombergMedia/orgs","repos_url":"https://api.github.com/users/BloombergMedia/repos","events_url":"https://api.github.com/users/BloombergMedia/events{/privacy}","received_events_url":"https://api.github.com/users/BloombergMedia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/BloombergMedia/bluebird","description":"Bluebird is a full featured promise library with unmatched performance.","fork":true,"url":"https://api.github.com/repos/BloombergMedia/bluebird","forks_url":"https://api.github.com/repos/BloombergMedia/bluebird/forks","keys_url":"https://api.github.com/repos/BloombergMedia/bluebird/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BloombergMedia/bluebird/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BloombergMedia/bluebird/teams","hooks_url":"https://api.github.com/repos/BloombergMedia/bluebird/hooks","issue_events_url":"https://api.github.com/repos/BloombergMedia/bluebird/issues/events{/number}","events_url":"https://api.github.com/repos/BloombergMedia/bluebird/events","assignees_url":"https://api.github.com/repos/BloombergMedia/bluebird/assignees{/user}","branches_url":"https://api.github.com/repos/BloombergMedia/bluebird/branches{/branch}","tags_url":"https://api.github.com/repos/BloombergMedia/bluebird/tags","blobs_url":"https://api.github.com/repos/BloombergMedia/bluebird/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BloombergMedia/bluebird/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BloombergMedia/bluebird/git/refs{/sha}","trees_url":"https://api.github.com/repos/BloombergMedia/bluebird/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BloombergMedia/bluebird/statuses/{sha}","languages_url":"https://api.github.com/repos/BloombergMedia/bluebird/languages","stargazers_url":"https://api.github.com/repos/BloombergMedia/bluebird/stargazers","contributors_url":"https://api.github.com/repos/BloombergMedia/bluebird/contributors","subscribers_url":"https://api.github.com/repos/BloombergMedia/bluebird/subscribers","subscription_url":"https://api.github.com/repos/BloombergMedia/bluebird/subscription","commits_url":"https://api.github.com/repos/BloombergMedia/bluebird/commits{/sha}","git_commits_url":"https://api.github.com/repos/BloombergMedia/bluebird/git/commits{/sha}","comments_url":"https://api.github.com/repos/BloombergMedia/bluebird/comments{/number}","issue_comment_url":"https://api.github.com/repos/BloombergMedia/bluebird/issues/comments{/number}","contents_url":"https://api.github.com/repos/BloombergMedia/bluebird/contents/{+path}","compare_url":"https://api.github.com/repos/BloombergMedia/bluebird/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BloombergMedia/bluebird/merges","archive_url":"https://api.github.com/repos/BloombergMedia/bluebird/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BloombergMedia/bluebird/downloads","issues_url":"https://api.github.com/repos/BloombergMedia/bluebird/issues{/number}","pulls_url":"https://api.github.com/repos/BloombergMedia/bluebird/pulls{/number}","milestones_url":"https://api.github.com/repos/BloombergMedia/bluebird/milestones{/number}","notifications_url":"https://api.github.com/repos/BloombergMedia/bluebird/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BloombergMedia/bluebird/labels{/name}","releases_url":"https://api.github.com/repos/BloombergMedia/bluebird/releases{/id}","created_at":"2015-08-12T21:38:24Z","updated_at":"2015-08-12T21:38:27Z","pushed_at":"2015-08-13T20:48:20Z","git_url":"git://github.com/BloombergMedia/bluebird.git","ssh_url":"git@github.com:BloombergMedia/bluebird.git","clone_url":"https://github.com/BloombergMedia/bluebird.git","svn_url":"https://github.com/BloombergMedia/bluebird","homepage":"","size":18836,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"BloombergMedia:master","ref":"master","sha":"e6c2f4bec4b9e1f7cb4b2dd5365172cac0a43549","user":{"login":"BloombergMedia","id":9340091,"avatar_url":"https://avatars.githubusercontent.com/u/9340091?v=3","gravatar_id":"","url":"https://api.github.com/users/BloombergMedia","html_url":"https://github.com/BloombergMedia","followers_url":"https://api.github.com/users/BloombergMedia/followers","following_url":"https://api.github.com/users/BloombergMedia/following{/other_user}","gists_url":"https://api.github.com/users/BloombergMedia/gists{/gist_id}","starred_url":"https://api.github.com/users/BloombergMedia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BloombergMedia/subscriptions","organizations_url":"https://api.github.com/users/BloombergMedia/orgs","repos_url":"https://api.github.com/users/BloombergMedia/repos","events_url":"https://api.github.com/users/BloombergMedia/events{/privacy}","received_events_url":"https://api.github.com/users/BloombergMedia/received_events","type":"Organization","site_admin":false},"repo":{"id":40625611,"name":"bluebird","full_name":"BloombergMedia/bluebird","owner":{"login":"BloombergMedia","id":9340091,"avatar_url":"https://avatars.githubusercontent.com/u/9340091?v=3","gravatar_id":"","url":"https://api.github.com/users/BloombergMedia","html_url":"https://github.com/BloombergMedia","followers_url":"https://api.github.com/users/BloombergMedia/followers","following_url":"https://api.github.com/users/BloombergMedia/following{/other_user}","gists_url":"https://api.github.com/users/BloombergMedia/gists{/gist_id}","starred_url":"https://api.github.com/users/BloombergMedia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BloombergMedia/subscriptions","organizations_url":"https://api.github.com/users/BloombergMedia/orgs","repos_url":"https://api.github.com/users/BloombergMedia/repos","events_url":"https://api.github.com/users/BloombergMedia/events{/privacy}","received_events_url":"https://api.github.com/users/BloombergMedia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/BloombergMedia/bluebird","description":"Bluebird is a full featured promise library with unmatched performance.","fork":true,"url":"https://api.github.com/repos/BloombergMedia/bluebird","forks_url":"https://api.github.com/repos/BloombergMedia/bluebird/forks","keys_url":"https://api.github.com/repos/BloombergMedia/bluebird/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BloombergMedia/bluebird/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BloombergMedia/bluebird/teams","hooks_url":"https://api.github.com/repos/BloombergMedia/bluebird/hooks","issue_events_url":"https://api.github.com/repos/BloombergMedia/bluebird/issues/events{/number}","events_url":"https://api.github.com/repos/BloombergMedia/bluebird/events","assignees_url":"https://api.github.com/repos/BloombergMedia/bluebird/assignees{/user}","branches_url":"https://api.github.com/repos/BloombergMedia/bluebird/branches{/branch}","tags_url":"https://api.github.com/repos/BloombergMedia/bluebird/tags","blobs_url":"https://api.github.com/repos/BloombergMedia/bluebird/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BloombergMedia/bluebird/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BloombergMedia/bluebird/git/refs{/sha}","trees_url":"https://api.github.com/repos/BloombergMedia/bluebird/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BloombergMedia/bluebird/statuses/{sha}","languages_url":"https://api.github.com/repos/BloombergMedia/bluebird/languages","stargazers_url":"https://api.github.com/repos/BloombergMedia/bluebird/stargazers","contributors_url":"https://api.github.com/repos/BloombergMedia/bluebird/contributors","subscribers_url":"https://api.github.com/repos/BloombergMedia/bluebird/subscribers","subscription_url":"https://api.github.com/repos/BloombergMedia/bluebird/subscription","commits_url":"https://api.github.com/repos/BloombergMedia/bluebird/commits{/sha}","git_commits_url":"https://api.github.com/repos/BloombergMedia/bluebird/git/commits{/sha}","comments_url":"https://api.github.com/repos/BloombergMedia/bluebird/comments{/number}","issue_comment_url":"https://api.github.com/repos/BloombergMedia/bluebird/issues/comments{/number}","contents_url":"https://api.github.com/repos/BloombergMedia/bluebird/contents/{+path}","compare_url":"https://api.github.com/repos/BloombergMedia/bluebird/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BloombergMedia/bluebird/merges","archive_url":"https://api.github.com/repos/BloombergMedia/bluebird/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BloombergMedia/bluebird/downloads","issues_url":"https://api.github.com/repos/BloombergMedia/bluebird/issues{/number}","pulls_url":"https://api.github.com/repos/BloombergMedia/bluebird/pulls{/number}","milestones_url":"https://api.github.com/repos/BloombergMedia/bluebird/milestones{/number}","notifications_url":"https://api.github.com/repos/BloombergMedia/bluebird/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BloombergMedia/bluebird/labels{/name}","releases_url":"https://api.github.com/repos/BloombergMedia/bluebird/releases{/id}","created_at":"2015-08-12T21:38:24Z","updated_at":"2015-08-12T21:38:27Z","pushed_at":"2015-08-13T20:48:20Z","git_url":"git://github.com/BloombergMedia/bluebird.git","ssh_url":"git@github.com:BloombergMedia/bluebird.git","clone_url":"https://github.com/BloombergMedia/bluebird.git","svn_url":"https://github.com/BloombergMedia/bluebird","homepage":"","size":18836,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/BloombergMedia/bluebird/pulls/1"},"html":{"href":"https://github.com/BloombergMedia/bluebird/pull/1"},"issue":{"href":"https://api.github.com/repos/BloombergMedia/bluebird/issues/1"},"comments":{"href":"https://api.github.com/repos/BloombergMedia/bluebird/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/BloombergMedia/bluebird/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/BloombergMedia/bluebird/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/BloombergMedia/bluebird/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/BloombergMedia/bluebird/statuses/6056b08a1334710fbd7462892ec8911b8236b160"}}}}