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:
parent
c7550537f1
commit
7185c00fcc
Notes:
git
2021-10-21 16:18:10 +09:00
3 changed files with 9 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue