Fix crash when determining whether an async exception is handled

BUG=

Review-Url: https://codereview.chromium.org/2780163002 .
This commit is contained in:
John McCutchan 2017-03-29 07:30:25 -07:00
parent 796c9c9002
commit 8cee5258ee

View file

@ -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;