summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorKoichi Sasada <ko1@atdot.net>2021-09-30 17:30:04 +0900
committerKoichi Sasada <ko1@atdot.net>2021-10-21 16:17:39 +0900
commit7185c00fcc330db8951b684f548ba3d10983bb92 (patch)
tree467a4658894283a0bae5c0bdfc9b39be7d9796e4 /test
parentc7550537f11dcf6450a9d3df3af3fa1f4fe05b15 (diff)
freeze (make shareable) script_lines
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4913
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_rubyvm.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ruby/test_rubyvm.rb b/test/ruby/test_rubyvm.rb
index fecaacfa78..a6d0b1a727 100644
--- a/test/ruby/test_rubyvm.rb
+++ b/test/ruby/test_rubyvm.rb
@@ -49,6 +49,7 @@ class TestRubyVM < Test::Unit::TestCase
iseq.each_child{|child|
assert_equal lines, child.script_lines
}
+ assert lines.frozen?
# don't keep
RubyVM.keep_script_lines = false