mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
range.c: hide internal `__num_to_a' method from backtrace.
This commit is contained in:
@@ -350,6 +350,7 @@ range_num_to_a(mrb_state *mrb, mrb_value range)
|
||||
mrb_value end = RANGE_END(r);
|
||||
mrb_value ary;
|
||||
|
||||
mrb->c->ci->mid = 0;
|
||||
if (mrb_nil_p(end)) {
|
||||
mrb->c->ci->mid = 0;
|
||||
mrb_raise(mrb, E_RANGE_ERROR, "cannot convert endless range to an array");
|
||||
|
||||
Reference in New Issue
Block a user