{"action":"opened","number":1,"pull_request":{"url":"https://api.github.com/repos/tdzienniak/pattern-emitter-promise/pulls/1","id":98486004,"html_url":"https://github.com/tdzienniak/pattern-emitter-promise/pull/1","diff_url":"https://github.com/tdzienniak/pattern-emitter-promise/pull/1.diff","patch_url":"https://github.com/tdzienniak/pattern-emitter-promise/pull/1.patch","issue_url":"https://api.github.com/repos/tdzienniak/pattern-emitter-promise/issues/1","number":1,"state":"open","locked":false,"title":"Handle an edge case where a handler function throw synchronously","user":{"login":"kuba-orlik","id":2697916,"avatar_url":"https://avatars.githubusercontent.com/u/2697916?v=3","gravatar_id":"","url":"https://api.github.com/users/kuba-orlik","html_url":"https://github.com/kuba-orlik","followers_url":"https://api.github.com/users/kuba-orlik/followers","following_url":"https://api.github.com/users/kuba-orlik/following{/other_user}","gists_url":"https://api.github.com/users/kuba-orlik/gists{/gist_id}","starred_url":"https://api.github.com/users/kuba-orlik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kuba-orlik/subscriptions","organizations_url":"https://api.github.com/users/kuba-orlik/orgs","repos_url":"https://api.github.com/users/kuba-orlik/repos","events_url":"https://api.github.com/users/kuba-orlik/events{/privacy}","received_events_url":"https://api.github.com/users/kuba-orlik/received_events","type":"User","site_admin":false},"body":"I worked with some code that accidentally threw an error synchronously (NOT with `Promise.reject`). The error was swallowed and it made debugging really hard! This should help solve the issue :)","created_at":"2016-12-18T20:21:25Z","updated_at":"2016-12-18T20:21:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"efd41761a07a369675075987b7b1f278bdbf564c","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/tdzienniak/pattern-emitter-promise/pulls/1/commits","review_comments_url":"https://api.github.com/repos/tdzienniak/pattern-emitter-promise/pulls/1/comments","review_comment_url":"https://api.github.com/repos/tdzienniak/pattern-emitter-promise/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tdzienniak/pattern-emitter-promise/issues/1/comments","statuses_url":"https://api.github.com/repos/tdzienniak/pattern-emitter-promise/statuses/5b022580a7082a9c9a7e9200a6c203dc5bc82482","head":{"label":"sealcode:master","ref":"master","sha":"5b022580a7082a9c9a7e9200a6c203dc5bc82482","user":{"login":"sealcode","id":11518171,"avatar_url":"https://avatars.githubusercontent.com/u/11518171?v=3","gravatar_id":"","url":"https://api.github.com/users/sealcode","html_url":"https://github.com/sealcode","followers_url":"https://api.github.com/users/sealcode/followers","following_url":"https://api.github.com/users/sealcode/following{/other_user}","gists_url":"https://api.github.com/users/sealcode/gists{/gist_id}","starred_url":"https://api.github.com/users/sealcode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sealcode/subscriptions","organizations_url":"https://api.github.com/users/sealcode/orgs","repos_url":"https://api.github.com/users/sealcode/repos","events_url":"https://api.github.com/users/sealcode/events{/privacy}","received_events_url":"https://api.github.com/users/sealcode/received_events","type":"Organization","site_admin":false},"repo":{"id":76804370,"name":"pattern-emitter-promise","full_name":"sealcode/pattern-emitter-promise","owner":{"login":"sealcode","id":11518171,"avatar_url":"https://avatars.githubusercontent.com/u/11518171?v=3","gravatar_id":"","url":"https://api.github.com/users/sealcode","html_url":"https://github.com/sealcode","followers_url":"https://api.github.com/users/sealcode/followers","following_url":"https://api.github.com/users/sealcode/following{/other_user}","gists_url":"https://api.github.com/users/sealcode/gists{/gist_id}","starred_url":"https://api.github.com/users/sealcode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sealcode/subscriptions","organizations_url":"https://api.github.com/users/sealcode/orgs","repos_url":"https://api.github.com/users/sealcode/repos","events_url":"https://api.github.com/users/sealcode/events{/privacy}","received_events_url":"https://api.github.com/users/sealcode/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sealcode/pattern-emitter-promise","description":"Asynchronous (using ES2015 Promises) event emitter supporting regex listeners","fork":true,"url":"https://api.github.com/repos/sealcode/pattern-emitter-promise","forks_url":"https://api.github.com/repos/sealcode/pattern-emitter-promise/forks","keys_url":"https://api.github.com/repos/sealcode/pattern-emitter-promise/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sealcode/pattern-emitter-promise/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sealcode/pattern-emitter-promise/teams","hooks_url":"https://api.github.com/repos/sealcode/pattern-emitter-promise/hooks","issue_events_url":"https://api.github.com/repos/sealcode/pattern-emitter-promise/issues/events{/number}","events_url":"https://api.github.com/repos/sealcode/pattern-emitter-promise/events","assignees_url":"https://api.github.com/repos/sealcode/pattern-emitter-promise/assignees{/user}","branches_url":"https://api.github.com/repos/sealcode/pattern-emitter-promise/branches{/branch}","tags_url":"https://api.github.com/repos/sealcode/pattern-emitter-promise/tags","blobs_url":"https://api.github.com/repos/sealcode/pattern-emitter-promise/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sealcode/pattern-emitter-promise/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sealcode/pattern-emitter-promise/git/refs{/sha}","trees_url":"https://api.github.com/repos/sealcode/pattern-emitter-promise/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sealcode/pattern-emitter-promise/statuses/{sha}","languages_url":"https://api.github.com/repos/sealcode/pattern-emitter-promise/languages","stargazers_url":"https://api.github.com/repos/sealcode/pattern-emitter-promise/stargazers","contributors_url":"https://api.github.com/repos/sealcode/pattern-emitter-promise/contributors","subscribers_url":"https://api.github.com/repos/sealcode/pattern-emitter-promise/subscribers","subscription_url":"https://api.github.com/repos/sealcode/pattern-emitter-promise/subscription","commits_url":"https://api.github.com/repos/sealcode/pattern-emitter-promise/commits{/sha}","git_commits_url":"https://api.github.com/repos/sealcode/pattern-emitter-promise/git/commits{/sha}","comments_url":"https://api.github.com/repos/sealcode/pattern-emitter-promise/comments{/number}","issue_comment_url":"https://api.github.com/repos/sealcode/pattern-emitter-promise/issues/comments{/number}","contents_url":"https://api.github.com/repos/sealcode/pattern-emitter-promise/contents/{+path}","compare_url":"https://api.github.com/repos/sealcode/pattern-emitter-promise/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sealcode/pattern-emitter-promise/merges","archive_url":"https://api.github.com/repos/sealcode/pattern-emitter-promise/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sealcode/pattern-emitter-promise/downloads","issues_url":"https://api.github.com/repos/sealcode/pattern-emitter-promise/issues{/number}","pulls_url":"https://api.github.com/repos/sealcode/pattern-emitter-promise/pulls{/number}","milestones_url":"https://api.github.com/repos/sealcode/pattern-emitter-promise/milestones{/number}","notifications_url":"https://api.github.com/repos/sealcode/pattern-emitter-promise/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sealcode/pattern-emitter-promise/labels{/name}","releases_url":"https://api.github.com/repos/sealcode/pattern-emitter-promise/releases{/id}","deployments_url":"https://api.github.com/repos/sealcode/pattern-emitter-promise/deployments","created_at":"2016-12-18T20:14:20Z","updated_at":"2016-12-18T20:14:22Z","pushed_at":"2016-12-18T20:15:33Z","git_url":"git://github.com/sealcode/pattern-emitter-promise.git","ssh_url":"git@github.com:sealcode/pattern-emitter-promise.git","clone_url":"https://github.com/sealcode/pattern-emitter-promise.git","svn_url":"https://github.com/sealcode/pattern-emitter-promise","homepage":"","size":156,"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":"tdzienniak:master","ref":"master","sha":"643e44749a950e4564e1ffa6a17fded8d18c5c14","user":{"login":"tdzienniak","id":1304915,"avatar_url":"https://avatars.githubusercontent.com/u/1304915?v=3","gravatar_id":"","url":"https://api.github.com/users/tdzienniak","html_url":"https://github.com/tdzienniak","followers_url":"https://api.github.com/users/tdzienniak/followers","following_url":"https://api.github.com/users/tdzienniak/following{/other_user}","gists_url":"https://api.github.com/users/tdzienniak/gists{/gist_id}","starred_url":"https://api.github.com/users/tdzienniak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tdzienniak/subscriptions","organizations_url":"https://api.github.com/users/tdzienniak/orgs","repos_url":"https://api.github.com/users/tdzienniak/repos","events_url":"https://api.github.com/users/tdzienniak/events{/privacy}","received_events_url":"https://api.github.com/users/tdzienniak/received_events","type":"User","site_admin":false},"repo":{"id":44381582,"name":"pattern-emitter-promise","full_name":"tdzienniak/pattern-emitter-promise","owner":{"login":"tdzienniak","id":1304915,"avatar_url":"https://avatars.githubusercontent.com/u/1304915?v=3","gravatar_id":"","url":"https://api.github.com/users/tdzienniak","html_url":"https://github.com/tdzienniak","followers_url":"https://api.github.com/users/tdzienniak/followers","following_url":"https://api.github.com/users/tdzienniak/following{/other_user}","gists_url":"https://api.github.com/users/tdzienniak/gists{/gist_id}","starred_url":"https://api.github.com/users/tdzienniak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tdzienniak/subscriptions","organizations_url":"https://api.github.com/users/tdzienniak/orgs","repos_url":"https://api.github.com/users/tdzienniak/repos","events_url":"https://api.github.com/users/tdzienniak/events{/privacy}","received_events_url":"https://api.github.com/users/tdzienniak/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tdzienniak/pattern-emitter-promise","description":"Asynchronous (using ES2015 Promises) event emitter supporting regex listeners","fork":false,"url":"https://api.github.com/repos/tdzienniak/pattern-emitter-promise","forks_url":"https://api.github.com/repos/tdzienniak/pattern-emitter-promise/forks","keys_url":"https://api.github.com/repos/tdzienniak/pattern-emitter-promise/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tdzienniak/pattern-emitter-promise/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tdzienniak/pattern-emitter-promise/teams","hooks_url":"https://api.github.com/repos/tdzienniak/pattern-emitter-promise/hooks","issue_events_url":"https://api.github.com/repos/tdzienniak/pattern-emitter-promise/issues/events{/number}","events_url":"https://api.github.com/repos/tdzienniak/pattern-emitter-promise/events","assignees_url":"https://api.github.com/repos/tdzienniak/pattern-emitter-promise/assignees{/user}","branches_url":"https://api.github.com/repos/tdzienniak/pattern-emitter-promise/branches{/branch}","tags_url":"https://api.github.com/repos/tdzienniak/pattern-emitter-promise/tags","blobs_url":"https://api.github.com/repos/tdzienniak/pattern-emitter-promise/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tdzienniak/pattern-emitter-promise/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tdzienniak/pattern-emitter-promise/git/refs{/sha}","trees_url":"https://api.github.com/repos/tdzienniak/pattern-emitter-promise/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tdzienniak/pattern-emitter-promise/statuses/{sha}","languages_url":"https://api.github.com/repos/tdzienniak/pattern-emitter-promise/languages","stargazers_url":"https://api.github.com/repos/tdzienniak/pattern-emitter-promise/stargazers","contributors_url":"https://api.github.com/repos/tdzienniak/pattern-emitter-promise/contributors","subscribers_url":"https://api.github.com/repos/tdzienniak/pattern-emitter-promise/subscribers","subscription_url":"https://api.github.com/repos/tdzienniak/pattern-emitter-promise/subscription","commits_url":"https://api.github.com/repos/tdzienniak/pattern-emitter-promise/commits{/sha}","git_commits_url":"https://api.github.com/repos/tdzienniak/pattern-emitter-promise/git/commits{/sha}","comments_url":"https://api.github.com/repos/tdzienniak/pattern-emitter-promise/comments{/number}","issue_comment_url":"https://api.github.com/repos/tdzienniak/pattern-emitter-promise/issues/comments{/number}","contents_url":"https://api.github.com/repos/tdzienniak/pattern-emitter-promise/contents/{+path}","compare_url":"https://api.github.com/repos/tdzienniak/pattern-emitter-promise/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tdzienniak/pattern-emitter-promise/merges","archive_url":"https://api.github.com/repos/tdzienniak/pattern-emitter-promise/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tdzienniak/pattern-emitter-promise/downloads","issues_url":"https://api.github.com/repos/tdzienniak/pattern-emitter-promise/issues{/number}","pulls_url":"https://api.github.com/repos/tdzienniak/pattern-emitter-promise/pulls{/number}","milestones_url":"https://api.github.com/repos/tdzienniak/pattern-emitter-promise/milestones{/number}","notifications_url":"https://api.github.com/repos/tdzienniak/pattern-emitter-promise/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tdzienniak/pattern-emitter-promise/labels{/name}","releases_url":"https://api.github.com/repos/tdzienniak/pattern-emitter-promise/releases{/id}","deployments_url":"https://api.github.com/repos/tdzienniak/pattern-emitter-promise/deployments","created_at":"2015-10-16T11:48:09Z","updated_at":"2016-12-18T16:09:42Z","pushed_at":"2016-12-18T20:21:26Z","git_url":"git://github.com/tdzienniak/pattern-emitter-promise.git","ssh_url":"git@github.com:tdzienniak/pattern-emitter-promise.git","clone_url":"https://github.com/tdzienniak/pattern-emitter-promise.git","svn_url":"https://github.com/tdzienniak/pattern-emitter-promise","homepage":"","size":156,"stargazers_count":2,"watchers_count":2,"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":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tdzienniak/pattern-emitter-promise/pulls/1"},"html":{"href":"https://github.com/tdzienniak/pattern-emitter-promise/pull/1"},"issue":{"href":"https://api.github.com/repos/tdzienniak/pattern-emitter-promise/issues/1"},"comments":{"href":"https://api.github.com/repos/tdzienniak/pattern-emitter-promise/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/tdzienniak/pattern-emitter-promise/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/tdzienniak/pattern-emitter-promise/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tdzienniak/pattern-emitter-promise/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/tdzienniak/pattern-emitter-promise/statuses/5b022580a7082a9c9a7e9200a6c203dc5bc82482"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":5,"deletions":1,"changed_files":1}}
{"actor":{"display_login":"kuba-orlik"}}