add assert on SP
This commit is contained in:
parent
400341aee9
commit
200d3cc14d
@ -2855,6 +2855,7 @@ iseq_set_exception_table(rb_iseq_t *iseq)
|
|||||||
if (entry->type == CATCH_TYPE_RESCUE ||
|
if (entry->type == CATCH_TYPE_RESCUE ||
|
||||||
entry->type == CATCH_TYPE_BREAK ||
|
entry->type == CATCH_TYPE_BREAK ||
|
||||||
entry->type == CATCH_TYPE_NEXT) {
|
entry->type == CATCH_TYPE_NEXT) {
|
||||||
|
RUBY_ASSERT(entry->sp > 0);
|
||||||
entry->sp--;
|
entry->sp--;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user