Index: runtime/vm/code_descriptors.h |
=================================================================== |
--- runtime/vm/code_descriptors.h (revision 42747) |
+++ runtime/vm/code_descriptors.h (working copy) |
@@ -145,7 +145,10 @@ |
if (try_index == CatchClauseNode::kInvalidTryIndex) { |
return; |
} |
- ASSERT((0 <= try_index) && (try_index < Length())); |
+ ASSERT(try_index >= 0); |
+ while (Length() <= try_index) { |
+ AddPlaceHolder(); |
+ } |
list_[try_index].needs_stacktrace = true; |
} |