mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
ee06bbb417
Replace mrb_assert with mrb_ensure_*_type for VM opcodes that require specific types: - OP_ARYCAT: mrb_ensure_array_type - OP_ARYPUSH: mrb_ensure_array_type - OP_ASET: mrb_ensure_array_type (also fixed: was checking wrong register) - OP_INTERN: mrb_ensure_string_type - OP_HASHCAT: mrb_ensure_hash_type These checks catch codegen bugs with clear error messages in both debug and release builds. Co-authored-by: Claude <noreply@anthropic.com>