- From: Joshua Bell <notifications@github.com>
- Date: Thu, 20 Apr 2017 09:26:10 -0700
- To: w3c/IndexedDB <IndexedDB@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 20 April 2017 16:27:18 UTC
This issue is about having errors on requests be reported to global onerror; the "Report the exception" in the DOM algorithm mentioned above would apply if an exception is thrown in a callback.
Contrast:
```js
store.put(v, k).onsuccess = e => {
throw Error('hello world'); // will invoke window.onerror handler
};
```
and:
```js
store.add(v, k);
store.put(v, k).onerror = e => {
console.warn('this will appear'); // will not invoke window.onerror handler
};
```
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/IndexedDB/issues/49#issuecomment-295801094
Received on Thursday, 20 April 2017 16:27:18 UTC