A little background — we currently log errors in our extension using
Sentry. We already capture a lot of errors for when things go wrong with our own Gmail hacks, and other random application-logic exceptions. The SDK typically provides very helpful errors (and sometimes catches application-level errors which would've otherwise been swallowed), but they are only ever logged into the console. It would be amazing if devs could register a handler with some sort of built-in 'onerror' mechanism which might be passed the exception (maybe even a real JS Error object?), and conceivably some extra metadata. Having a real Error object would be a big plus for us too, since then Sentry could do
rollups/event aggregation.