mirror of
https://github.com/dart-lang/sdk
synced 2024-09-16 03:27:43 +00:00
Fix crash when determining whether an async exception is handled
BUG= Review-Url: https://codereview.chromium.org/2780163002 .
This commit is contained in:
parent
796c9c9002
commit
8cee5258ee
|
@ -806,6 +806,10 @@ RawObject* ActivationFrame::GetCausalStack() {
|
|||
|
||||
|
||||
bool ActivationFrame::HandlesException(const Instance& exc_obj) {
|
||||
if ((kind_ == kAsyncSuspensionMarker) || (kind_ == kAsyncCausal)) {
|
||||
// These frames are historical.
|
||||
return false;
|
||||
}
|
||||
intptr_t try_index = TryIndex();
|
||||
if (try_index < 0) {
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue