{"action":"created","issue":{"url":"https://api.github.com/repos/petkaantonov/bluebird/issues/9","labels_url":"https://api.github.com/repos/petkaantonov/bluebird/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/petkaantonov/bluebird/issues/9/comments","events_url":"https://api.github.com/repos/petkaantonov/bluebird/issues/9/events","html_url":"https://github.com/petkaantonov/bluebird/issues/9","id":20674256,"number":9,"title":"Stack traces of promisified function throwing asynchronous exception.","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},"labels":[{"url":"https://api.github.com/repos/petkaantonov/bluebird/labels/invalid","name":"invalid","color":"e6e6e6"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2013-10-08T12:01:26Z","updated_at":"2015-05-10T23:19:27Z","closed_at":"2013-10-09T12:00:09Z","body":"Let's say I promisify a function like this:\r\n\r\n```\r\nfunction lol(err,cb){\r\n   setTimeout(function(){\r\n       setTimeout(function(){\r\n           throw \"lolwtf_I'mAString\";\r\n       },100);\r\n      cb(null,\"Haha\")\r\n   },100);\r\n}\r\n```\r\n\r\nBluebird does not handle the error, nor would I get a stack trace. Domains can be used here to provide better stack traces at least in debug builds.\r\n\r\nhttp://chat.stackoverflow.com/transcript/message/12228569#12228569"},"comment":{"url":"https://api.github.com/repos/petkaantonov/bluebird/issues/comments/100714903","html_url":"https://github.com/petkaantonov/bluebird/issues/9#issuecomment-100714903","issue_url":"https://api.github.com/repos/petkaantonov/bluebird/issues/9","id":100714903,"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},"created_at":"2015-05-10T23:19:27Z","updated_at":"2015-05-10T23:19:27Z","body":"@petkaantonov Two years later, can/should we warn on callback called twice in 3.0?"}}