mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Use __send__ instead of send; ref #4207
This commit is contained in:
+2
-2
@@ -263,10 +263,10 @@ assert('Exception 13') do
|
||||
end
|
||||
|
||||
assert('Exception 14') do
|
||||
def exception_test14; UnknownConstant; end
|
||||
def (o = Object.new).exception_test14; UnknownConstant end
|
||||
a = :ng
|
||||
begin
|
||||
send(:exception_test14)
|
||||
o.__send__(:exception_test14)
|
||||
rescue
|
||||
a = :ok
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user