{"action":"created","issue":{"url":"https://api.github.com/repos/evanw/node-source-map-support/issues/188","repository_url":"https://api.github.com/repos/evanw/node-source-map-support","labels_url":"https://api.github.com/repos/evanw/node-source-map-support/issues/188/labels{/name}","comments_url":"https://api.github.com/repos/evanw/node-source-map-support/issues/188/comments","events_url":"https://api.github.com/repos/evanw/node-source-map-support/issues/188/events","html_url":"https://github.com/evanw/node-source-map-support/pull/188","id":252834722,"number":188,"title":"Show correct stack traces for unhandled promise rejections","user":{"login":"arkadiyt","id":2279289,"avatar_url":"https://avatars0.githubusercontent.com/u/2279289?v=4","gravatar_id":"","url":"https://api.github.com/users/arkadiyt","html_url":"https://github.com/arkadiyt","followers_url":"https://api.github.com/users/arkadiyt/followers","following_url":"https://api.github.com/users/arkadiyt/following{/other_user}","gists_url":"https://api.github.com/users/arkadiyt/gists{/gist_id}","starred_url":"https://api.github.com/users/arkadiyt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arkadiyt/subscriptions","organizations_url":"https://api.github.com/users/arkadiyt/orgs","repos_url":"https://api.github.com/users/arkadiyt/repos","events_url":"https://api.github.com/users/arkadiyt/events{/privacy}","received_events_url":"https://api.github.com/users/arkadiyt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-08-25T08:42:40Z","updated_at":"2017-08-28T09:20:13Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/evanw/node-source-map-support/pulls/188","html_url":"https://github.com/evanw/node-source-map-support/pull/188","diff_url":"https://github.com/evanw/node-source-map-support/pull/188.diff","patch_url":"https://github.com/evanw/node-source-map-support/pull/188.patch"},"body":"Hi,\r\n\r\nWhen an ES6 promise is rejected without being handled, node logs it to the console:\r\n```\r\n(node:61401) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: blah\r\n```\r\nand emits an `unhandledRejection` event with the uncaught error. This PR adds support in the same way that `uncaughtException` is handled, and prints the correct stacktrace:\r\n```\r\n/Users/atetelman/workspace/project/index.js:70\r\n    throw new Error('blah');\r\n          ^\r\nError: blah\r\n    at Object.<anonymous> (/Users/atetelman/workspace/project/src/index.js:70:11)\r\n    at next (native)\r\n    at step (/Users/atetelman/workspace/project/index-dist.js:246:191)\r\n    at /Users/atetelman/workspace/project/index-dist.js:246:361\r\n    at process._tickDomainCallback (internal/process/next_tick.js:135:7)\r\n```\r\n\r\nThanks,"},"comment":{"url":"https://api.github.com/repos/evanw/node-source-map-support/issues/comments/325304512","html_url":"https://github.com/evanw/node-source-map-support/pull/188#issuecomment-325304512","issue_url":"https://api.github.com/repos/evanw/node-source-map-support/issues/188","id":325304512,"user":{"login":"LinusU","id":189580,"avatar_url":"https://avatars0.githubusercontent.com/u/189580?v=4","gravatar_id":"","url":"https://api.github.com/users/LinusU","html_url":"https://github.com/LinusU","followers_url":"https://api.github.com/users/LinusU/followers","following_url":"https://api.github.com/users/LinusU/following{/other_user}","gists_url":"https://api.github.com/users/LinusU/gists{/gist_id}","starred_url":"https://api.github.com/users/LinusU/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LinusU/subscriptions","organizations_url":"https://api.github.com/users/LinusU/orgs","repos_url":"https://api.github.com/users/LinusU/repos","events_url":"https://api.github.com/users/LinusU/events{/privacy}","received_events_url":"https://api.github.com/users/LinusU/received_events","type":"User","site_admin":false},"created_at":"2017-08-28T09:20:13Z","updated_at":"2017-08-28T09:20:13Z","body":"Great investigation 👍 It's probably best to to not go that route...\r\n\r\nLet's merge it as it"}}
{"actor":{"display_login":"LinusU"}}