summaryrefslogtreecommitdiff
path: root/bootstraptest/test_proc.rb
diff options
context:
space:
mode:
authorJeremy Evans <code@jeremyevans.net>2020-01-17 11:36:52 -0800
committerJeremy Evans <code@jeremyevans.net>2020-01-22 09:09:47 -0800
commite91c39f1c0f7d5e670266d9593d533fd444957f6 (patch)
treebf6b715bb789f3b838110117aec773e3c3a10c19 /bootstraptest/test_proc.rb
parent461db352c22c0ffb5c0db295238f97f44168e6cc (diff)
Remove special handling of $SAFE and related C-APIs
These were all deprecated in Ruby 2.7.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/2845
Diffstat (limited to 'bootstraptest/test_proc.rb')
-rw-r--r--bootstraptest/test_proc.rb13
1 files changed, 0 insertions, 13 deletions
diff --git a/bootstraptest/test_proc.rb b/bootstraptest/test_proc.rb
index 1e38441..6d2c557 100644
--- a/bootstraptest/test_proc.rb
+++ b/bootstraptest/test_proc.rb
@@ -225,19 +225,6 @@ assert_equal %q{[[nil, []], [1, []], [1, [2]], [1, [2, 3]]]}, %q{
]
}
assert_equal %q{1}, %q{
- pr = proc{
- $SAFE
- }
- $SAFE = 1
- pr.call
-}
-assert_equal %q{[1, 1]}, %q{
- pr = proc{
- $SAFE += 1
- }
- [pr.call, $SAFE]
-}
-assert_equal %q{1}, %q{
def m(&b)
b
end