diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-10-13 16:48:35 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-11-07 12:40:27 +0900 |
commit | ec657f44dca3b84fde2a0b3b66c4e0e74a4cdce8 (patch) | |
tree | 88d9917508840b254cd1809ff07fec43a0b0323d /test/ruby | |
parent | 334b69e5042f47f89c8780c1d7efa32d70c84786 (diff) |
Refine the error message for hidden variables
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/5035
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_iseq.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/ruby/test_iseq.rb b/test/ruby/test_iseq.rb index 19357a774d..2b3282d5fb 100644 --- a/test/ruby/test_iseq.rb +++ b/test/ruby/test_iseq.rb @@ -135,6 +135,11 @@ class TestISeq < Test::Unit::TestCase assert_raise_with_message(Ractor::IsolationError, /`#{name}'/) do Ractor.make_shareable(y) end + obj = Object.new + def obj.foo(*) ->{super} end + assert_raise_with_message(Ractor::IsolationError, /hidden variable/) do + Ractor.make_shareable(obj.foo) + end end def test_disasm_encoding |