{"action":"opened","issue":{"url":"https://api.github.com/repos/nodejs/node/issues/3607","labels_url":"https://api.github.com/repos/nodejs/node/issues/3607/labels{/name}","comments_url":"https://api.github.com/repos/nodejs/node/issues/3607/comments","events_url":"https://api.github.com/repos/nodejs/node/issues/3607/events","html_url":"https://github.com/nodejs/node/issues/3607","id":114306604,"number":3607,"title":"Domains inhibit uncaughtException error handling","user":{"login":"piscisaureus","id":218257,"avatar_url":"https://avatars.githubusercontent.com/u/218257?v=3","gravatar_id":"","url":"https://api.github.com/users/piscisaureus","html_url":"https://github.com/piscisaureus","followers_url":"https://api.github.com/users/piscisaureus/followers","following_url":"https://api.github.com/users/piscisaureus/following{/other_user}","gists_url":"https://api.github.com/users/piscisaureus/gists{/gist_id}","starred_url":"https://api.github.com/users/piscisaureus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/piscisaureus/subscriptions","organizations_url":"https://api.github.com/users/piscisaureus/orgs","repos_url":"https://api.github.com/users/piscisaureus/repos","events_url":"https://api.github.com/users/piscisaureus/events{/privacy}","received_events_url":"https://api.github.com/users/piscisaureus/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nodejs/node/labels/domain","name":"domain","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-30T16:34:29Z","updated_at":"2015-10-30T16:34:29Z","closed_at":null,"body":"In the test case below, I would expect the `uncaughtException` handler to run (since the domain doesn't have an `error` event handler), but it doesn't.\r\n\r\nVerified with node v0.10.39 and v4.2.1.\r\n\r\n```js\r\nvar domain = require('domain');\r\n\r\nvar d = domain.create();\r\nd.enter();\r\n\r\nprocess.on('uncaughtException', function(e) {\r\n  console.log('Uncaught exception: ', e);\r\n});\r\n\r\nsetTimeout(function() {\r\n  throw new Error('Bla!');\r\n}, 1);\r\n```"}}