Closed alexlapa closed 4 months ago
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
Modify #[dart_bridge] to wrap each function in try-catch and require all bindings to have a Result return.
#[dart_bridge]
Result
k::
FCM:
Panic on unhandled Dart exceptions (#176)
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 aResult
return.Checklist
k::
labels applied