diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2019-01-13 08:03:14 +0900 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-01-13 08:03:14 +0900 |
| commit | c1b92f88a210d018b653dc9865fe5375cf118a61 (patch) | |
| tree | b551d80bfecbf14d022e8fb643132be7b2ab4d82 /test | |
| parent | 980b7b5c50006174b43b760fa01deca9dfa19e64 (diff) | |
| parent | 8b951710fe535acf479672691720cf9b80bc5331 (diff) | |
| download | mruby-c1b92f88a210d018b653dc9865fe5375cf118a61.tar.gz mruby-c1b92f88a210d018b653dc9865fe5375cf118a61.zip | |
Merge pull request #4224 from shuujii/use-__send__-instead-of-send
Use `__send__` instead of `send`; ref #4207
Diffstat (limited to 'test')
| -rw-r--r-- | test/t/exception.rb | 4 |
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 |
