void setErrorsFatal(
bool errorsAreFatal
)

Set whether uncaught errors will terminate the isolate.

WARNING: This method is experimental and not handled on every platform yet.

If errors are fatal, any uncaught error will terminate the isolate event loop and shut down the isolate.

This call requires the terminateCapability for the isolate. If the capability is not correct, no change is made.

Source

/**
 * Set whether uncaught errors will terminate the isolate.
 *
 * WARNING: This method is experimental and not handled on every platform yet.
 *
 * If errors are fatal, any uncaught error will terminate the isolate
 * event loop and shut down the isolate.
 *
 * This call requires the [terminateCapability] for the isolate.
 * If the capability is not correct, no change is made.
 */
external void setErrorsFatal(bool errorsAreFatal);