{"action":"created","comment":{"url":"https://api.github.com/repos/iojs/io.js/pulls/comments/25324448","id":25324448,"diff_hunk":"@@ -116,6 +116,45 @@ Nine out of ten times nothing happens - but the 10th time, your system is bust.\n \n You have been warned.\n \n+## Event: 'unhandledRejection'\n+\n+Emitted whenever a `Promise` is rejected and no error handler is attached to the promise within a turn of the event loop. When programming with promises exceptions are encapsulated as rejected promises. Such promises can be caught and handled using `promise.catch(...)` and rejections are propagated through a promise chain. This event is useful for detecting and keeping track of promises that were rejected whose rejections were not handled yet. This event is emitted with the following arguments:","path":"doc/api/process.markdown","position":6,"original_position":6,"commit_id":"e639ef848387ccf00a721444359558a75f7f1e47","original_commit_id":"e639ef848387ccf00a721444359558a75f7f1e47","user":{"login":"benjamingr","id":1315533,"avatar_url":"https://avatars.githubusercontent.com/u/1315533?v=3","gravatar_id":"","url":"https://api.github.com/users/benjamingr","html_url":"https://github.com/benjamingr","followers_url":"https://api.github.com/users/benjamingr/followers","following_url":"https://api.github.com/users/benjamingr/following{/other_user}","gists_url":"https://api.github.com/users/benjamingr/gists{/gist_id}","starred_url":"https://api.github.com/users/benjamingr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benjamingr/subscriptions","organizations_url":"https://api.github.com/users/benjamingr/orgs","repos_url":"https://api.github.com/users/benjamingr/repos","events_url":"https://api.github.com/users/benjamingr/events{/privacy}","received_events_url":"https://api.github.com/users/benjamingr/received_events","type":"User","site_admin":false},"body":"@domenic I think rejection handler is more concise promise terminology but I chose error handler since I found it more approachable for people without a background with promises - if you feel strongly about this I can change it though.","created_at":"2015-02-25T08:31:37Z","updated_at":"2015-02-25T08:31:37Z","html_url":"https://github.com/iojs/io.js/pull/946#discussion_r25324448","pull_request_url":"https://api.github.com/repos/iojs/io.js/pulls/946","_links":{"self":{"href":"https://api.github.com/repos/iojs/io.js/pulls/comments/25324448"},"html":{"href":"https://github.com/iojs/io.js/pull/946#discussion_r25324448"},"pull_request":{"href":"https://api.github.com/repos/iojs/io.js/pulls/946"}}},"pull_request":{"url":"https://api.github.com/repos/iojs/io.js/pulls/946","id":29951371,"html_url":"https://github.com/iojs/io.js/pull/946","diff_url":"https://github.com/iojs/io.js/pull/946.diff","patch_url":"https://github.com/iojs/io.js/pull/946.patch","issue_url":"https://api.github.com/repos/iojs/io.js/issues/946","number":946,"state":"open","locked":false,"title":"Documents API changes in #256","user":{"login":"benjamingr","id":1315533,"avatar_url":"https://avatars.githubusercontent.com/u/1315533?v=3","gravatar_id":"","url":"https://api.github.com/users/benjamingr","html_url":"https://github.com/benjamingr","followers_url":"https://api.github.com/users/benjamingr/followers","following_url":"https://api.github.com/users/benjamingr/following{/other_user}","gists_url":"https://api.github.com/users/benjamingr/gists{/gist_id}","starred_url":"https://api.github.com/users/benjamingr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benjamingr/subscriptions","organizations_url":"https://api.github.com/users/benjamingr/orgs","repos_url":"https://api.github.com/users/benjamingr/repos","events_url":"https://api.github.com/users/benjamingr/events{/privacy}","received_events_url":"https://api.github.com/users/benjamingr/received_events","type":"User","site_admin":false},"body":"Documents the new unhandled rejection detection API.\r\n\r\nAwesome work on that PR everyone!\r\n\r\nhttps://github.com/iojs/io.js/issues/256#event-241385784","created_at":"2015-02-25T00:44:22Z","updated_at":"2015-02-25T08:31:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"51cf83ca6e575fb761abe78b15215c34758df35f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/iojs/io.js/pulls/946/commits","review_comments_url":"https://api.github.com/repos/iojs/io.js/pulls/946/comments","review_comment_url":"https://api.github.com/repos/iojs/io.js/pulls/comments{/number}","comments_url":"https://api.github.com/repos/iojs/io.js/issues/946/comments","statuses_url":"https://api.github.com/repos/iojs/io.js/statuses/e639ef848387ccf00a721444359558a75f7f1e47","head":{"label":"benjamingr:patch-2","ref":"patch-2","sha":"e639ef848387ccf00a721444359558a75f7f1e47","user":{"login":"benjamingr","id":1315533,"avatar_url":"https://avatars.githubusercontent.com/u/1315533?v=3","gravatar_id":"","url":"https://api.github.com/users/benjamingr","html_url":"https://github.com/benjamingr","followers_url":"https://api.github.com/users/benjamingr/followers","following_url":"https://api.github.com/users/benjamingr/following{/other_user}","gists_url":"https://api.github.com/users/benjamingr/gists{/gist_id}","starred_url":"https://api.github.com/users/benjamingr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benjamingr/subscriptions","organizations_url":"https://api.github.com/users/benjamingr/orgs","repos_url":"https://api.github.com/users/benjamingr/repos","events_url":"https://api.github.com/users/benjamingr/events{/privacy}","received_events_url":"https://api.github.com/users/benjamingr/received_events","type":"User","site_admin":false},"repo":{"id":31289185,"name":"io.js","full_name":"benjamingr/io.js","owner":{"login":"benjamingr","id":1315533,"avatar_url":"https://avatars.githubusercontent.com/u/1315533?v=3","gravatar_id":"","url":"https://api.github.com/users/benjamingr","html_url":"https://github.com/benjamingr","followers_url":"https://api.github.com/users/benjamingr/followers","following_url":"https://api.github.com/users/benjamingr/following{/other_user}","gists_url":"https://api.github.com/users/benjamingr/gists{/gist_id}","starred_url":"https://api.github.com/users/benjamingr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benjamingr/subscriptions","organizations_url":"https://api.github.com/users/benjamingr/orgs","repos_url":"https://api.github.com/users/benjamingr/repos","events_url":"https://api.github.com/users/benjamingr/events{/privacy}","received_events_url":"https://api.github.com/users/benjamingr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/benjamingr/io.js","description":"Evented IO for V8 JavaScript","fork":true,"url":"https://api.github.com/repos/benjamingr/io.js","forks_url":"https://api.github.com/repos/benjamingr/io.js/forks","keys_url":"https://api.github.com/repos/benjamingr/io.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/benjamingr/io.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/benjamingr/io.js/teams","hooks_url":"https://api.github.com/repos/benjamingr/io.js/hooks","issue_events_url":"https://api.github.com/repos/benjamingr/io.js/issues/events{/number}","events_url":"https://api.github.com/repos/benjamingr/io.js/events","assignees_url":"https://api.github.com/repos/benjamingr/io.js/assignees{/user}","branches_url":"https://api.github.com/repos/benjamingr/io.js/branches{/branch}","tags_url":"https://api.github.com/repos/benjamingr/io.js/tags","blobs_url":"https://api.github.com/repos/benjamingr/io.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/benjamingr/io.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/benjamingr/io.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/benjamingr/io.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/benjamingr/io.js/statuses/{sha}","languages_url":"https://api.github.com/repos/benjamingr/io.js/languages","stargazers_url":"https://api.github.com/repos/benjamingr/io.js/stargazers","contributors_url":"https://api.github.com/repos/benjamingr/io.js/contributors","subscribers_url":"https://api.github.com/repos/benjamingr/io.js/subscribers","subscription_url":"https://api.github.com/repos/benjamingr/io.js/subscription","commits_url":"https://api.github.com/repos/benjamingr/io.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/benjamingr/io.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/benjamingr/io.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/benjamingr/io.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/benjamingr/io.js/contents/{+path}","compare_url":"https://api.github.com/repos/benjamingr/io.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/benjamingr/io.js/merges","archive_url":"https://api.github.com/repos/benjamingr/io.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/benjamingr/io.js/downloads","issues_url":"https://api.github.com/repos/benjamingr/io.js/issues{/number}","pulls_url":"https://api.github.com/repos/benjamingr/io.js/pulls{/number}","milestones_url":"https://api.github.com/repos/benjamingr/io.js/milestones{/number}","notifications_url":"https://api.github.com/repos/benjamingr/io.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/benjamingr/io.js/labels{/name}","releases_url":"https://api.github.com/repos/benjamingr/io.js/releases{/id}","created_at":"2015-02-25T00:23:02Z","updated_at":"2015-02-25T00:23:07Z","pushed_at":"2015-02-25T01:13:14Z","git_url":"git://github.com/benjamingr/io.js.git","ssh_url":"git@github.com:benjamingr/io.js.git","clone_url":"https://github.com/benjamingr/io.js.git","svn_url":"https://github.com/benjamingr/io.js","homepage":null,"size":119951,"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":"v0.12"}},"base":{"label":"iojs:v1.x","ref":"v1.x","sha":"872702d9b712fc60d4e6b06a1e1526e0506abda0","user":{"login":"iojs","id":9950313,"avatar_url":"https://avatars.githubusercontent.com/u/9950313?v=3","gravatar_id":"","url":"https://api.github.com/users/iojs","html_url":"https://github.com/iojs","followers_url":"https://api.github.com/users/iojs/followers","following_url":"https://api.github.com/users/iojs/following{/other_user}","gists_url":"https://api.github.com/users/iojs/gists{/gist_id}","starred_url":"https://api.github.com/users/iojs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iojs/subscriptions","organizations_url":"https://api.github.com/users/iojs/orgs","repos_url":"https://api.github.com/users/iojs/repos","events_url":"https://api.github.com/users/iojs/events{/privacy}","received_events_url":"https://api.github.com/users/iojs/received_events","type":"Organization","site_admin":false},"repo":{"id":27193779,"name":"io.js","full_name":"iojs/io.js","owner":{"login":"iojs","id":9950313,"avatar_url":"https://avatars.githubusercontent.com/u/9950313?v=3","gravatar_id":"","url":"https://api.github.com/users/iojs","html_url":"https://github.com/iojs","followers_url":"https://api.github.com/users/iojs/followers","following_url":"https://api.github.com/users/iojs/following{/other_user}","gists_url":"https://api.github.com/users/iojs/gists{/gist_id}","starred_url":"https://api.github.com/users/iojs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iojs/subscriptions","organizations_url":"https://api.github.com/users/iojs/orgs","repos_url":"https://api.github.com/users/iojs/repos","events_url":"https://api.github.com/users/iojs/events{/privacy}","received_events_url":"https://api.github.com/users/iojs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/iojs/io.js","description":"A friendly fork of Node.js with an open governance model","fork":false,"url":"https://api.github.com/repos/iojs/io.js","forks_url":"https://api.github.com/repos/iojs/io.js/forks","keys_url":"https://api.github.com/repos/iojs/io.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/iojs/io.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/iojs/io.js/teams","hooks_url":"https://api.github.com/repos/iojs/io.js/hooks","issue_events_url":"https://api.github.com/repos/iojs/io.js/issues/events{/number}","events_url":"https://api.github.com/repos/iojs/io.js/events","assignees_url":"https://api.github.com/repos/iojs/io.js/assignees{/user}","branches_url":"https://api.github.com/repos/iojs/io.js/branches{/branch}","tags_url":"https://api.github.com/repos/iojs/io.js/tags","blobs_url":"https://api.github.com/repos/iojs/io.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/iojs/io.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/iojs/io.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/iojs/io.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/iojs/io.js/statuses/{sha}","languages_url":"https://api.github.com/repos/iojs/io.js/languages","stargazers_url":"https://api.github.com/repos/iojs/io.js/stargazers","contributors_url":"https://api.github.com/repos/iojs/io.js/contributors","subscribers_url":"https://api.github.com/repos/iojs/io.js/subscribers","subscription_url":"https://api.github.com/repos/iojs/io.js/subscription","commits_url":"https://api.github.com/repos/iojs/io.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/iojs/io.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/iojs/io.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/iojs/io.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/iojs/io.js/contents/{+path}","compare_url":"https://api.github.com/repos/iojs/io.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/iojs/io.js/merges","archive_url":"https://api.github.com/repos/iojs/io.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/iojs/io.js/downloads","issues_url":"https://api.github.com/repos/iojs/io.js/issues{/number}","pulls_url":"https://api.github.com/repos/iojs/io.js/pulls{/number}","milestones_url":"https://api.github.com/repos/iojs/io.js/milestones{/number}","notifications_url":"https://api.github.com/repos/iojs/io.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/iojs/io.js/labels{/name}","releases_url":"https://api.github.com/repos/iojs/io.js/releases{/id}","created_at":"2014-11-26T19:57:11Z","updated_at":"2015-02-25T07:52:30Z","pushed_at":"2015-02-25T00:30:08Z","git_url":"git://github.com/iojs/io.js.git","ssh_url":"git@github.com:iojs/io.js.git","clone_url":"https://github.com/iojs/io.js.git","svn_url":"https://github.com/iojs/io.js","homepage":"https://iojs.org","size":152341,"stargazers_count":10519,"watchers_count":10519,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":659,"mirror_url":null,"open_issues_count":182,"forks":659,"open_issues":182,"watchers":10519,"default_branch":"v1.x"}},"_links":{"self":{"href":"https://api.github.com/repos/iojs/io.js/pulls/946"},"html":{"href":"https://github.com/iojs/io.js/pull/946"},"issue":{"href":"https://api.github.com/repos/iojs/io.js/issues/946"},"comments":{"href":"https://api.github.com/repos/iojs/io.js/issues/946/comments"},"review_comments":{"href":"https://api.github.com/repos/iojs/io.js/pulls/946/comments"},"review_comment":{"href":"https://api.github.com/repos/iojs/io.js/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/iojs/io.js/pulls/946/commits"},"statuses":{"href":"https://api.github.com/repos/iojs/io.js/statuses/e639ef848387ccf00a721444359558a75f7f1e47"}}}}