Invalid Isolate arguments throw uncatchable errors #28041
Labels
area-core-library
SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.
library-isolate
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
When you try to send an illegal object across isolate boundaries, Dart currently top-levels an exception. I'd expect it to throw synchronously on the call to
SendPort.add()
. The current behavior makes it extremely difficult to tell where the illegal object is coming from or to gracefully handle the error.For example:
See also #18593.
The text was updated successfully, but these errors were encountered: