mruby-eval/test: use #__send__ to call private #eval

This commit is contained in:
Yukihiro "Matz" Matsumoto
2025-02-15 07:52:50 +09:00
parent 23d5e04fdf
commit d022a3ee68
+1 -1
View File
@@ -51,7 +51,7 @@ assert "Binding#eval with Binding.new via Method" do
# The following test is OK if SIGSEGV does not occur
cx = Class.new(Binding)
cx.define_singleton_method(:allocate, &Object.method(:allocate))
Class.instance_method(:new).bind_call(cx).eval("")
Class.instance_method(:new).bind_call(cx).__send__(:eval,"")
assert_true true
end