mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
restore mrb_get_args() in f_instance_eval to check arguments type
This commit is contained in:
@@ -196,6 +196,7 @@ f_instance_eval(mrb_state *mrb, mrb_value self)
|
||||
return mrb_run(mrb, create_proc_from_string(mrb, s, len, mrb_nil_value(), file, line), self);
|
||||
}
|
||||
else {
|
||||
mrb_get_args(mrb, "&", &b);
|
||||
return mrb_obj_instance_eval(mrb, self);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user