getify / monio

The most powerful IO monad implementation in JS, possibly in any language!
http://monio.run
MIT License
1.05k stars 58 forks source link

integrate `window.reportError(..)` into IOx's unhandled error mechanism #17

Closed getify closed 2 years ago

getify commented 2 years ago

https://developer.mozilla.org/en-US/docs/Web/API/reportError

Apparently, this mechanism invokes any window.onerror or window.addEventListener("error") handlers defined, whereas console.error(..) only reports to the console. That's probably useful enough to detect and invoke if the environment supports it, falling back to console.error otherwise.