- From: Joshua Bell <notifications@github.com>
- Date: Fri, 18 Aug 2023 14:31:34 -0700
- To: w3c/IndexedDB <IndexedDB@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 18 August 2023 21:31:40 UTC
Agreed re: throwing. For [web locks](https://www.w3.org/TR/web-locks/#dom-lockmanager-request) it's spec'd to reject with an "InvalidStateError" DOMException, which seems reasonable to me. I'd prefer to reserve UnknownError for cases when we're in unspecable/untestable territory, whereas this is just an edge case but totally specable/testable. I don't feel strongly about it though. FWIW, in Chrome localStorage.getItem() throws a "SecurityError" DOMException and caches.open() returns undefined (not a Promise!). Wheee. -- Reply to this email directly or view it on GitHub: https://github.com/w3c/IndexedDB/issues/412#issuecomment-1684455343 You are receiving this because you are subscribed to this thread. Message ID: <w3c/IndexedDB/issues/412/1684455343@github.com>
Received on Friday, 18 August 2023 21:31:40 UTC