mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
add assert on SP
This commit is contained in:
parent
400341aee9
commit
200d3cc14d
1 changed files with 1 additions and 0 deletions
|
@ -2855,6 +2855,7 @@ iseq_set_exception_table(rb_iseq_t *iseq)
|
|||
if (entry->type == CATCH_TYPE_RESCUE ||
|
||||
entry->type == CATCH_TYPE_BREAK ||
|
||||
entry->type == CATCH_TYPE_NEXT) {
|
||||
RUBY_ASSERT(entry->sp > 0);
|
||||
entry->sp--;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue