vm.c: check object type before concatenating strings.

parent ae3c9976
......@@ -2756,6 +2756,7 @@ RETRY_TRY_BLOCK:
}
CASE(OP_STRCAT, B) {
mrb_ensure_string_type(mrb, regs[a]);
mrb_str_concat(mrb, regs[a], regs[a+1]);
NEXT;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment