Closed
Description
This issue was originally filed by [email protected]
Feature request: add global error handling functionality to Dart similar to JavaScript's window "onerror" event: https://developer.mozilla.org/en-US/docs/DOM/window.onerror
Discussed in Dart-Lang group: https://groups.google.com/a/dartlang.org/forum/?fromgroups=#!topic/misc/11zYWSbDCNU
The best solution/workaround that was given in the discussion group was to wrap main() in a try/catch but that doesn't catch any errors in event listeners or async calls.