summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2019-01-13 08:03:14 +0900
committerGitHub <[email protected]>2019-01-13 08:03:14 +0900
commitc1b92f88a210d018b653dc9865fe5375cf118a61 (patch)
treeb551d80bfecbf14d022e8fb643132be7b2ab4d82
parent980b7b5c50006174b43b760fa01deca9dfa19e64 (diff)
parent8b951710fe535acf479672691720cf9b80bc5331 (diff)
downloadmruby-c1b92f88a210d018b653dc9865fe5375cf118a61.tar.gz
mruby-c1b92f88a210d018b653dc9865fe5375cf118a61.zip
Merge pull request #4224 from shuujii/use-__send__-instead-of-send
Use `__send__` instead of `send`; ref #4207
-rw-r--r--test/t/exception.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/t/exception.rb b/test/t/exception.rb
index ce7b5841e..bdf277c1e 100644
--- a/test/t/exception.rb
+++ b/test/t/exception.rb
@@ -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