1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

freeze (make shareable) script_lines

This commit is contained in:
Koichi Sasada 2021-09-30 17:30:04 +09:00
parent c7550537f1
commit 7185c00fcc
Notes: git 2021-10-21 16:18:10 +09:00
3 changed files with 9 additions and 2 deletions

View file

@ -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