{"action":"created","issue":{"url":"https://api.github.com/repos/dfahlander/Dexie.js/issues/264","repository_url":"https://api.github.com/repos/dfahlander/Dexie.js","labels_url":"https://api.github.com/repos/dfahlander/Dexie.js/issues/264/labels{/name}","comments_url":"https://api.github.com/repos/dfahlander/Dexie.js/issues/264/comments","events_url":"https://api.github.com/repos/dfahlander/Dexie.js/issues/264/events","html_url":"https://github.com/dfahlander/Dexie.js/issues/264","id":158993167,"number":264,"title":"Broken Promise rejection","user":{"login":"dpogue","id":241708,"avatar_url":"https://avatars.githubusercontent.com/u/241708?v=3","gravatar_id":"","url":"https://api.github.com/users/dpogue","html_url":"https://github.com/dpogue","followers_url":"https://api.github.com/users/dpogue/followers","following_url":"https://api.github.com/users/dpogue/following{/other_user}","gists_url":"https://api.github.com/users/dpogue/gists{/gist_id}","starred_url":"https://api.github.com/users/dpogue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dpogue/subscriptions","organizations_url":"https://api.github.com/users/dpogue/orgs","repos_url":"https://api.github.com/users/dpogue/repos","events_url":"https://api.github.com/users/dpogue/events{/privacy}","received_events_url":"https://api.github.com/users/dpogue/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-06-07T18:33:23Z","updated_at":"2016-06-07T22:06:03Z","closed_at":null,"body":"I'm having an issue after upgrading to Dexie 1.4.0:\r\n\r\n```javascript\r\nMyDB.where('id')\r\n    .equals('does-not-exist')\r\n    .first()\r\n    .then(result => {\r\n      if (result !== null && result !== undefined) {\r\n        return result;\r\n      } else {\r\n        return Promise.reject(result)\r\n      }\r\n    })\r\n    .catch(_ => null);\r\n```\r\n\r\nThe catch block is never running, despite returning a rejected promise in the handler above.\r\nThis worked in 1.3.6."},"comment":{"url":"https://api.github.com/repos/dfahlander/Dexie.js/issues/comments/224429308","html_url":"https://github.com/dfahlander/Dexie.js/issues/264#issuecomment-224429308","issue_url":"https://api.github.com/repos/dfahlander/Dexie.js/issues/264","id":224429308,"user":{"login":"dpogue","id":241708,"avatar_url":"https://avatars.githubusercontent.com/u/241708?v=3","gravatar_id":"","url":"https://api.github.com/users/dpogue","html_url":"https://github.com/dpogue","followers_url":"https://api.github.com/users/dpogue/followers","following_url":"https://api.github.com/users/dpogue/following{/other_user}","gists_url":"https://api.github.com/users/dpogue/gists{/gist_id}","starred_url":"https://api.github.com/users/dpogue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dpogue/subscriptions","organizations_url":"https://api.github.com/users/dpogue/orgs","repos_url":"https://api.github.com/users/dpogue/repos","events_url":"https://api.github.com/users/dpogue/events{/privacy}","received_events_url":"https://api.github.com/users/dpogue/received_events","type":"User","site_admin":false},"created_at":"2016-06-07T22:06:03Z","updated_at":"2016-06-07T22:06:03Z","body":"It seems that it does work if I `throw Promise.reject(result)`, but that's not consistent with behaviour of native promises"}}
{"actor":{"display_login":"dpogue"}}