mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Update internal methods not to be listed in backtraces.
- String#__lines - Array#__ary_eq - Array#__ary_cmp - Hash#__delete - Kernel#__case_eqq - Integer#__coerce_step_counter
This commit is contained in:
@@ -1281,6 +1281,7 @@ mrb_ary_eq(mrb_state *mrb, mrb_value ary1)
|
||||
{
|
||||
mrb_value ary2 = mrb_get_arg1(mrb);
|
||||
|
||||
mrb->c->ci->mid = 0;
|
||||
if (mrb_obj_equal(mrb, ary1, ary2)) return mrb_true_value();
|
||||
if (!mrb_array_p(ary2)) {
|
||||
return mrb_false_value();
|
||||
@@ -1295,6 +1296,7 @@ mrb_ary_cmp(mrb_state *mrb, mrb_value ary1)
|
||||
{
|
||||
mrb_value ary2 = mrb_get_arg1(mrb);
|
||||
|
||||
mrb->c->ci->mid = 0;
|
||||
if (mrb_obj_equal(mrb, ary1, ary2)) return mrb_fixnum_value(0);
|
||||
if (!mrb_array_p(ary2)) {
|
||||
return mrb_nil_value();
|
||||
|
||||
Reference in New Issue
Block a user