diff options
author | Aaron Patterson <tenderlove@ruby-lang.org> | 2024-01-18 12:35:52 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2024-01-19 09:35:36 -0800 |
commit | 200d3cc14d4c98bfee3826bda9c0e09a1113d939 (patch) | |
tree | 35687da0210bfd849b4055e5f746f1c049882d79 /compile.c | |
parent | 400341aee9aad650b1e75bc840362d1dc8dd108d (diff) |
add assert on SP
Diffstat (limited to 'compile.c')
-rw-r--r-- | compile.c | 1 |
1 files changed, 1 insertions, 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--; } } |