{"action":"opened","issue":{"url":"https://api.github.com/repos/dfahlander/Dexie.js/issues/67","labels_url":"https://api.github.com/repos/dfahlander/Dexie.js/issues/67/labels{/name}","comments_url":"https://api.github.com/repos/dfahlander/Dexie.js/issues/67/comments","events_url":"https://api.github.com/repos/dfahlander/Dexie.js/issues/67/events","html_url":"https://github.com/dfahlander/Dexie.js/issues/67","id":59435515,"number":67,"title":"Exception can be thrown in WhereClause methods","user":{"login":"dfahlander","id":6791329,"avatar_url":"https://avatars.githubusercontent.com/u/6791329?v=3","gravatar_id":"","url":"https://api.github.com/users/dfahlander","html_url":"https://github.com/dfahlander","followers_url":"https://api.github.com/users/dfahlander/followers","following_url":"https://api.github.com/users/dfahlander/following{/other_user}","gists_url":"https://api.github.com/users/dfahlander/gists{/gist_id}","starred_url":"https://api.github.com/users/dfahlander/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dfahlander/subscriptions","organizations_url":"https://api.github.com/users/dfahlander/orgs","repos_url":"https://api.github.com/users/dfahlander/repos","events_url":"https://api.github.com/users/dfahlander/events{/privacy}","received_events_url":"https://api.github.com/users/dfahlander/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-02T03:45:17Z","updated_at":"2015-03-02T03:45:17Z","closed_at":null,"body":"Keys passed to the WhereClause methods anyOf(), between(), above(), below() and equals() are not checked for undefined or non-valid key types. Corresponding IDBKeyRange methods will throw if the passed key is not valid. In current version Dexie does not convert these errors into failed promises. Dexie should prohibit ordinary exceptions and instead return the error in the final Promise so that the user never has to do multiple error checking with both try..catch and Promise catch.\r\n"}}