summaryrefslogtreecommitdiff
path: root/bootstraptest
diff options
context:
space:
mode:
authorNARUSE, Yui <naruse@airemix.jp>2021-02-02 19:09:40 +0900
committerNARUSE, Yui <naruse@airemix.jp>2021-02-02 19:09:40 +0900
commit71b4638ca29a5d8a7d6f72e453513035d2096f47 (patch)
tree7feee157dc3a6429beba070577273e99dd6ff29d /bootstraptest
parente9843cdaee26387310384fa0a1d43d450b017350 (diff)
merge revision(s) 1cdae49d39fbaef654df487f168d1fb14a146d59: [Backport #17577]
Implement NameError::message#clone for Ractor --- bootstraptest/test_ractor.rb | 13 +++++++++++++ error.c | 35 +++++++++++++++++++++++++++++++++-- test/objspace/test_objspace.rb | 9 +++++++++ 3 files changed, 55 insertions(+), 2 deletions(-)
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 56add68403..1c29a2b799 100644
--- a/bootstraptest/test_ractor.rb
+++ b/bootstraptest/test_ractor.rb
@@ -1325,4 +1325,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']