Remove assertions to check catch handler offset to be in 16bits.

This commit is contained in:
Yukihiro "Matz" Matsumoto
2020-12-02 09:47:13 +09:00
parent 826fe1bc36
commit affb18b85b
-3
View File
@@ -3265,9 +3265,6 @@ catch_handler_set(codegen_scope *s, int ent, enum mrb_catch_type type, uint32_t
struct mrb_irep_catch_handler *e;
mrb_assert(ent >= 0 && ent < s->irep->clen);
mrb_assert(begin < MAXARG_S);
mrb_assert(end < MAXARG_S);
mrb_assert(target < MAXARG_S);
e = &s->catch_table[ent];
uint8_to_bin(type, &e->type);