dart-sdk/runtime
Vyacheslav Egorov 0ea5013250 [vm] Respect catchError attached to the last async frame.
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>
2024-02-05 21:09:38 +00:00
..
bin [ffi] Fix callback subtyping test 2024-02-05 03:19:01 +00:00
docs [vm, gc] Mark through new-space. 2024-01-26 18:58:54 +00:00
include Expose Dart_Null_DL from dart_api_dl.h 2023-12-11 21:06:37 +00:00
lib [vm] Avoid allocation when printing type names. 2024-01-29 23:53:19 +00:00
observatory [ Service ] Remove steal_breakpoint_test.dart 2024-01-31 20:23:10 +00:00
platform [vm, gc] Mark through new-space. 2024-01-26 18:58:54 +00:00
tests [gardening] Skip test that requires aot on ia32. 2024-02-01 16:07:49 +00:00
tools [vm/ffi] Refactor dart:ffi generator 2024-02-02 18:11:00 +00:00
vm [vm] Respect catchError attached to the last async frame. 2024-02-05 21:09:38 +00:00
.clang-tidy
.gitignore
BUILD.gn [build] Omit SDK and Git hashes on RBE. 2023-12-20 12:23:56 +00:00
codereview.settings
configs.gni [Runtime] Add extra_product_deps and extra_nonproduct_deps params to "library_for_all_configs_with_compiler" template 2023-04-14 19:51:40 +00:00
CPPLINT.cfg [cpplint] Disable runtime/references lint 2023-01-23 18:21:48 +00:00
OWNERS [infra] Add OWNERS to the Dart SDK 2022-02-14 14:06:34 +00:00
PRESUBMIT.py Reland "Reland "[VM] Begin supporting Perfetto file recorder"" 2023-04-18 19:39:05 +00:00
runtime_args.gni [vm] Cleanup old TODO. 2024-01-18 22:56:40 +00:00
vm-jit.shard.cml [test] Cleanup building Fuchsia packages/components. 2023-10-31 17:11:51 +00:00
vm.shard.cml [test] Cleanup building Fuchsia packages/components. 2023-10-31 17:11:51 +00:00