{"action":"created","comment":{"url":"https://api.github.com/repos/julien-f/event-to-promise/pulls/comments/37758665","id":37758665,"diff_hunk":"@@ -101,7 +166,7 @@ describe('event-to-promise', function () {\n     var error = new Error()\n \n     // Node requires at least one error listener.\n-    emitter.on('error', function noop () {})\n+    emitter.once('error', function noop () {})","path":"index.spec.js","position":88,"original_position":88,"commit_id":"aeaac78810f01bf4cbb4f6c39b85cb4d69d90388","original_commit_id":"aeaac78810f01bf4cbb4f6c39b85cb4d69d90388","user":{"login":"chocolateboy","id":31533,"avatar_url":"https://avatars.githubusercontent.com/u/31533?v=3","gravatar_id":"","url":"https://api.github.com/users/chocolateboy","html_url":"https://github.com/chocolateboy","followers_url":"https://api.github.com/users/chocolateboy/followers","following_url":"https://api.github.com/users/chocolateboy/following{/other_user}","gists_url":"https://api.github.com/users/chocolateboy/gists{/gist_id}","starred_url":"https://api.github.com/users/chocolateboy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chocolateboy/subscriptions","organizations_url":"https://api.github.com/users/chocolateboy/orgs","repos_url":"https://api.github.com/users/chocolateboy/repos","events_url":"https://api.github.com/users/chocolateboy/events{/privacy}","received_events_url":"https://api.github.com/users/chocolateboy/received_events","type":"User","site_admin":false},"body":"It's called once, after which we have no further use for it. Why would you not use `once` here?\r\n\r\nIf there was a bug in this library that caused the error event to be fired twice, `once` would expose it, while `on` would silently swallow it.","created_at":"2015-08-24T14:46:05Z","updated_at":"2015-08-24T14:46:05Z","html_url":"https://github.com/julien-f/event-to-promise/pull/1#discussion_r37758665","pull_request_url":"https://api.github.com/repos/julien-f/event-to-promise/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/julien-f/event-to-promise/pulls/comments/37758665"},"html":{"href":"https://github.com/julien-f/event-to-promise/pull/1#discussion_r37758665"},"pull_request":{"href":"https://api.github.com/repos/julien-f/event-to-promise/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/julien-f/event-to-promise/pulls/1","id":43169232,"html_url":"https://github.com/julien-f/event-to-promise/pull/1","diff_url":"https://github.com/julien-f/event-to-promise/pull/1.diff","patch_url":"https://github.com/julien-f/event-to-promise/pull/1.patch","issue_url":"https://api.github.com/repos/julien-f/event-to-promise/issues/1","number":1,"state":"open","locked":false,"title":"Add \"array\" and \"error\" options","user":{"login":"chocolateboy","id":31533,"avatar_url":"https://avatars.githubusercontent.com/u/31533?v=3","gravatar_id":"","url":"https://api.github.com/users/chocolateboy","html_url":"https://github.com/chocolateboy","followers_url":"https://api.github.com/users/chocolateboy/followers","following_url":"https://api.github.com/users/chocolateboy/following{/other_user}","gists_url":"https://api.github.com/users/chocolateboy/gists{/gist_id}","starred_url":"https://api.github.com/users/chocolateboy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chocolateboy/subscriptions","organizations_url":"https://api.github.com/users/chocolateboy/orgs","repos_url":"https://api.github.com/users/chocolateboy/repos","events_url":"https://api.github.com/users/chocolateboy/events{/privacy}","received_events_url":"https://api.github.com/users/chocolateboy/received_events","type":"User","site_admin":false},"body":"##### array\r\n\r\nforces the listener's parameters to be resolved as an array rather than a single value.\r\n\r\ndefault: `undefined`\r\n\r\n##### error\r\n\r\nallows the name of the error event to be specified.\r\n\r\ndefault: `\"error\"`\r\n","created_at":"2015-08-24T12:32:02Z","updated_at":"2015-08-24T14:46:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6087d0b4698b41055b2a9c87a690630386e6abb1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/julien-f/event-to-promise/pulls/1/commits","review_comments_url":"https://api.github.com/repos/julien-f/event-to-promise/pulls/1/comments","review_comment_url":"https://api.github.com/repos/julien-f/event-to-promise/pulls/comments{/number}","comments_url":"https://api.github.com/repos/julien-f/event-to-promise/issues/1/comments","statuses_url":"https://api.github.com/repos/julien-f/event-to-promise/statuses/aeaac78810f01bf4cbb4f6c39b85cb4d69d90388","head":{"label":"chocolateboy:add-options","ref":"add-options","sha":"aeaac78810f01bf4cbb4f6c39b85cb4d69d90388","user":{"login":"chocolateboy","id":31533,"avatar_url":"https://avatars.githubusercontent.com/u/31533?v=3","gravatar_id":"","url":"https://api.github.com/users/chocolateboy","html_url":"https://github.com/chocolateboy","followers_url":"https://api.github.com/users/chocolateboy/followers","following_url":"https://api.github.com/users/chocolateboy/following{/other_user}","gists_url":"https://api.github.com/users/chocolateboy/gists{/gist_id}","starred_url":"https://api.github.com/users/chocolateboy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chocolateboy/subscriptions","organizations_url":"https://api.github.com/users/chocolateboy/orgs","repos_url":"https://api.github.com/users/chocolateboy/repos","events_url":"https://api.github.com/users/chocolateboy/events{/privacy}","received_events_url":"https://api.github.com/users/chocolateboy/received_events","type":"User","site_admin":false},"repo":{"id":41295164,"name":"event-to-promise","full_name":"chocolateboy/event-to-promise","owner":{"login":"chocolateboy","id":31533,"avatar_url":"https://avatars.githubusercontent.com/u/31533?v=3","gravatar_id":"","url":"https://api.github.com/users/chocolateboy","html_url":"https://github.com/chocolateboy","followers_url":"https://api.github.com/users/chocolateboy/followers","following_url":"https://api.github.com/users/chocolateboy/following{/other_user}","gists_url":"https://api.github.com/users/chocolateboy/gists{/gist_id}","starred_url":"https://api.github.com/users/chocolateboy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chocolateboy/subscriptions","organizations_url":"https://api.github.com/users/chocolateboy/orgs","repos_url":"https://api.github.com/users/chocolateboy/repos","events_url":"https://api.github.com/users/chocolateboy/events{/privacy}","received_events_url":"https://api.github.com/users/chocolateboy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/chocolateboy/event-to-promise","description":"Create a promise waiting for an event","fork":true,"url":"https://api.github.com/repos/chocolateboy/event-to-promise","forks_url":"https://api.github.com/repos/chocolateboy/event-to-promise/forks","keys_url":"https://api.github.com/repos/chocolateboy/event-to-promise/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chocolateboy/event-to-promise/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chocolateboy/event-to-promise/teams","hooks_url":"https://api.github.com/repos/chocolateboy/event-to-promise/hooks","issue_events_url":"https://api.github.com/repos/chocolateboy/event-to-promise/issues/events{/number}","events_url":"https://api.github.com/repos/chocolateboy/event-to-promise/events","assignees_url":"https://api.github.com/repos/chocolateboy/event-to-promise/assignees{/user}","branches_url":"https://api.github.com/repos/chocolateboy/event-to-promise/branches{/branch}","tags_url":"https://api.github.com/repos/chocolateboy/event-to-promise/tags","blobs_url":"https://api.github.com/repos/chocolateboy/event-to-promise/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chocolateboy/event-to-promise/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chocolateboy/event-to-promise/git/refs{/sha}","trees_url":"https://api.github.com/repos/chocolateboy/event-to-promise/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chocolateboy/event-to-promise/statuses/{sha}","languages_url":"https://api.github.com/repos/chocolateboy/event-to-promise/languages","stargazers_url":"https://api.github.com/repos/chocolateboy/event-to-promise/stargazers","contributors_url":"https://api.github.com/repos/chocolateboy/event-to-promise/contributors","subscribers_url":"https://api.github.com/repos/chocolateboy/event-to-promise/subscribers","subscription_url":"https://api.github.com/repos/chocolateboy/event-to-promise/subscription","commits_url":"https://api.github.com/repos/chocolateboy/event-to-promise/commits{/sha}","git_commits_url":"https://api.github.com/repos/chocolateboy/event-to-promise/git/commits{/sha}","comments_url":"https://api.github.com/repos/chocolateboy/event-to-promise/comments{/number}","issue_comment_url":"https://api.github.com/repos/chocolateboy/event-to-promise/issues/comments{/number}","contents_url":"https://api.github.com/repos/chocolateboy/event-to-promise/contents/{+path}","compare_url":"https://api.github.com/repos/chocolateboy/event-to-promise/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chocolateboy/event-to-promise/merges","archive_url":"https://api.github.com/repos/chocolateboy/event-to-promise/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chocolateboy/event-to-promise/downloads","issues_url":"https://api.github.com/repos/chocolateboy/event-to-promise/issues{/number}","pulls_url":"https://api.github.com/repos/chocolateboy/event-to-promise/pulls{/number}","milestones_url":"https://api.github.com/repos/chocolateboy/event-to-promise/milestones{/number}","notifications_url":"https://api.github.com/repos/chocolateboy/event-to-promise/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chocolateboy/event-to-promise/labels{/name}","releases_url":"https://api.github.com/repos/chocolateboy/event-to-promise/releases{/id}","created_at":"2015-08-24T09:43:47Z","updated_at":"2015-08-24T09:43:48Z","pushed_at":"2015-08-24T12:31:00Z","git_url":"git://github.com/chocolateboy/event-to-promise.git","ssh_url":"git@github.com:chocolateboy/event-to-promise.git","clone_url":"https://github.com/chocolateboy/event-to-promise.git","svn_url":"https://github.com/chocolateboy/event-to-promise","homepage":"","size":95,"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":"julien-f:master","ref":"master","sha":"f6e3973b2901b5c67e599ecc1cc6e8a0ce026d21","user":{"login":"julien-f","id":298721,"avatar_url":"https://avatars.githubusercontent.com/u/298721?v=3","gravatar_id":"","url":"https://api.github.com/users/julien-f","html_url":"https://github.com/julien-f","followers_url":"https://api.github.com/users/julien-f/followers","following_url":"https://api.github.com/users/julien-f/following{/other_user}","gists_url":"https://api.github.com/users/julien-f/gists{/gist_id}","starred_url":"https://api.github.com/users/julien-f/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/julien-f/subscriptions","organizations_url":"https://api.github.com/users/julien-f/orgs","repos_url":"https://api.github.com/users/julien-f/repos","events_url":"https://api.github.com/users/julien-f/events{/privacy}","received_events_url":"https://api.github.com/users/julien-f/received_events","type":"User","site_admin":false},"repo":{"id":18725897,"name":"event-to-promise","full_name":"julien-f/event-to-promise","owner":{"login":"julien-f","id":298721,"avatar_url":"https://avatars.githubusercontent.com/u/298721?v=3","gravatar_id":"","url":"https://api.github.com/users/julien-f","html_url":"https://github.com/julien-f","followers_url":"https://api.github.com/users/julien-f/followers","following_url":"https://api.github.com/users/julien-f/following{/other_user}","gists_url":"https://api.github.com/users/julien-f/gists{/gist_id}","starred_url":"https://api.github.com/users/julien-f/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/julien-f/subscriptions","organizations_url":"https://api.github.com/users/julien-f/orgs","repos_url":"https://api.github.com/users/julien-f/repos","events_url":"https://api.github.com/users/julien-f/events{/privacy}","received_events_url":"https://api.github.com/users/julien-f/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/julien-f/event-to-promise","description":"Create a promise waiting for an event","fork":false,"url":"https://api.github.com/repos/julien-f/event-to-promise","forks_url":"https://api.github.com/repos/julien-f/event-to-promise/forks","keys_url":"https://api.github.com/repos/julien-f/event-to-promise/keys{/key_id}","collaborators_url":"https://api.github.com/repos/julien-f/event-to-promise/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/julien-f/event-to-promise/teams","hooks_url":"https://api.github.com/repos/julien-f/event-to-promise/hooks","issue_events_url":"https://api.github.com/repos/julien-f/event-to-promise/issues/events{/number}","events_url":"https://api.github.com/repos/julien-f/event-to-promise/events","assignees_url":"https://api.github.com/repos/julien-f/event-to-promise/assignees{/user}","branches_url":"https://api.github.com/repos/julien-f/event-to-promise/branches{/branch}","tags_url":"https://api.github.com/repos/julien-f/event-to-promise/tags","blobs_url":"https://api.github.com/repos/julien-f/event-to-promise/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/julien-f/event-to-promise/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/julien-f/event-to-promise/git/refs{/sha}","trees_url":"https://api.github.com/repos/julien-f/event-to-promise/git/trees{/sha}","statuses_url":"https://api.github.com/repos/julien-f/event-to-promise/statuses/{sha}","languages_url":"https://api.github.com/repos/julien-f/event-to-promise/languages","stargazers_url":"https://api.github.com/repos/julien-f/event-to-promise/stargazers","contributors_url":"https://api.github.com/repos/julien-f/event-to-promise/contributors","subscribers_url":"https://api.github.com/repos/julien-f/event-to-promise/subscribers","subscription_url":"https://api.github.com/repos/julien-f/event-to-promise/subscription","commits_url":"https://api.github.com/repos/julien-f/event-to-promise/commits{/sha}","git_commits_url":"https://api.github.com/repos/julien-f/event-to-promise/git/commits{/sha}","comments_url":"https://api.github.com/repos/julien-f/event-to-promise/comments{/number}","issue_comment_url":"https://api.github.com/repos/julien-f/event-to-promise/issues/comments{/number}","contents_url":"https://api.github.com/repos/julien-f/event-to-promise/contents/{+path}","compare_url":"https://api.github.com/repos/julien-f/event-to-promise/compare/{base}...{head}","merges_url":"https://api.github.com/repos/julien-f/event-to-promise/merges","archive_url":"https://api.github.com/repos/julien-f/event-to-promise/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/julien-f/event-to-promise/downloads","issues_url":"https://api.github.com/repos/julien-f/event-to-promise/issues{/number}","pulls_url":"https://api.github.com/repos/julien-f/event-to-promise/pulls{/number}","milestones_url":"https://api.github.com/repos/julien-f/event-to-promise/milestones{/number}","notifications_url":"https://api.github.com/repos/julien-f/event-to-promise/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/julien-f/event-to-promise/labels{/name}","releases_url":"https://api.github.com/repos/julien-f/event-to-promise/releases{/id}","created_at":"2014-04-13T09:37:57Z","updated_at":"2015-03-30T23:38:25Z","pushed_at":"2015-08-24T12:32:03Z","git_url":"git://github.com/julien-f/event-to-promise.git","ssh_url":"git@github.com:julien-f/event-to-promise.git","clone_url":"https://github.com/julien-f/event-to-promise.git","svn_url":"https://github.com/julien-f/event-to-promise","homepage":"","size":244,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/julien-f/event-to-promise/pulls/1"},"html":{"href":"https://github.com/julien-f/event-to-promise/pull/1"},"issue":{"href":"https://api.github.com/repos/julien-f/event-to-promise/issues/1"},"comments":{"href":"https://api.github.com/repos/julien-f/event-to-promise/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/julien-f/event-to-promise/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/julien-f/event-to-promise/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/julien-f/event-to-promise/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/julien-f/event-to-promise/statuses/aeaac78810f01bf4cbb4f6c39b85cb4d69d90388"}}}}