mirror of
https://github.com/dart-lang/sdk
synced 2024-09-18 21:51:18 +00:00
0ea5013250
Our async unwinding code used to only respect `catchError` which occured between async frames and ignored trailing `catchError` like in the code below Future(...).catchError((_) { /* handle error */ }); This CL also simplifies how we communicate the presence of the exception handler to the debugger: the code in the debugger did not actually care about which frame catches the error (for async handlers), so we don't need to precisely mark async gaps with `has_catch_error` flag. Instead we have a single boolean produced by unwinding which signals whether there we encountered an asynchronous error handler or not. Fixes https://github.com/flutter/flutter/issues/141882 TEST=service/pause_on_unhandled_async_exceptions5 Change-Id: Id6f6a97ee5444c197b2c621f68d1e47082fc8997 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/350320 Commit-Queue: Slava Egorov <vegorov@google.com> Reviewed-by: Alexander Aprelev <aam@google.com> |
||
---|---|---|
.. | ||
bin | ||
docs | ||
include | ||
lib | ||
observatory | ||
platform | ||
tests | ||
tools | ||
vm | ||
.clang-tidy | ||
.gitignore | ||
BUILD.gn | ||
codereview.settings | ||
configs.gni | ||
CPPLINT.cfg | ||
OWNERS | ||
PRESUBMIT.py | ||
runtime_args.gni | ||
vm-jit.shard.cml | ||
vm.shard.cml |