mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Suppress uninitialized instance variable warnings
This commit is contained in:
parent
f19e048d24
commit
0c3e6e86bd
1 changed files with 1 additions and 0 deletions
|
@ -697,6 +697,7 @@ EOS
|
|||
erb = ERB.allocate
|
||||
erb.instance_variable_set(:@src, "")
|
||||
erb.instance_variable_set(:@lineno, 1)
|
||||
erb.instance_variable_set(:@_init, true)
|
||||
erb = Marshal.load(Marshal.dump(erb))
|
||||
assert_raise(ArgumentError) {erb.result}
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue