diff options
| author | KOBAYASHI Shuji <[email protected]> | 2019-01-12 22:21:34 +0900 |
|---|---|---|
| committer | KOBAYASHI Shuji <[email protected]> | 2019-01-12 22:21:34 +0900 |
| commit | 8b951710fe535acf479672691720cf9b80bc5331 (patch) | |
| tree | b551d80bfecbf14d022e8fb643132be7b2ab4d82 | |
| parent | 980b7b5c50006174b43b760fa01deca9dfa19e64 (diff) | |
| download | mruby-8b951710fe535acf479672691720cf9b80bc5331.tar.gz mruby-8b951710fe535acf479672691720cf9b80bc5331.zip | |
Use `__send__` instead of `send`; ref #4207
| -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 |
