Re: [w3c/IndexedDB] Integrate with window.onerror (#49)

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