instrumentisto / medea-jason

Mozilla Public License 2.0
2 stars 2 forks source link

Panic on unhandled Dart exceptions #176

Closed alexlapa closed 4 months ago

alexlapa commented 4 months ago

Synopsis

Atm if Rust calls Dart and Dart throws an exception, Rust might not notice this and just continue execution. For example this happened in #174

Solution

Modify #[dart_bridge] to wrap each function in try-catch and require all bindings to have a Result return.

Checklist

alexlapa commented 4 months ago

FCM:

Panic on unhandled Dart exceptions (#176)