summaryrefslogtreecommitdiff
path: root/bootstraptest
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-02-01 18:01:10 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-02-01 19:54:21 +0900
commit1cdae49d39fbaef654df487f168d1fb14a146d59 (patch)
tree93b08df3c82851092345cb2b4003c540268e5e55 /bootstraptest
parent0dd38902b96e6062130080ab5b96098dedf71139 (diff)
Implement NameError::message#clone for Ractor
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4142
Diffstat (limited to 'bootstraptest')
-rw-r--r--bootstraptest/test_ractor.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/bootstraptest/test_ractor.rb b/bootstraptest/test_ractor.rb
index 0e3a6bce5d..b32a79063b 100644
--- a/bootstraptest/test_ractor.rb
+++ b/bootstraptest/test_ractor.rb
@@ -1350,4 +1350,17 @@ assert_equal "#{n}#{n}", %Q{
}.map{|r| r.take}.join
}
+# NameError
+assert_equal "ok", %q{
+ begin
+ bar
+ rescue => err
+ end
+ begin
+ Ractor.new{} << err
+ rescue TypeError
+ 'ok'
+ end
+}
+
end # if !ENV['GITHUB_WORKFLOW']