mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Kernel#respond_to? should return true|false only
This commit is contained in:
+1
-1
@@ -963,7 +963,7 @@ obj_respond_to(mrb_state *mrb, mrb_value self)
|
||||
mrb_value args[2];
|
||||
args[0] = mid;
|
||||
args[1] = mrb_bool_value(priv);
|
||||
return mrb_funcall_argv(mrb, self, rtm_id, 2, args);
|
||||
return mrb_bool_value(mrb_bool(mrb_funcall_argv(mrb, self, rtm_id, 2, args)));
|
||||
}
|
||||
}
|
||||
return mrb_bool_value(respond_to_p);
|
||||
|
||||
Reference in New Issue
Block a user