69ebb404e7
For yielding functions (async, sync*, async*) we need to look for annotations on the outer function instead of the synthetic inner function associated with the handler frame. Fixes https://github.com/dart-lang/sdk/issues/45673 TEST=runtime/observatory{,_2}/tests/service{,_2}/notify_debugger_on_exception_yielding_test.dart Bug: https://github.com/dart-lang/sdk/issues/45673 Change-Id: I8b1718b3614852f6f8db98811177b21fe587fea1 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/198408 Reviewed-by: Vyacheslav Egorov <vegorov@google.com> Commit-Queue: Clement Skau <cskau@google.com>