summaryrefslogtreecommitdiff
path: root/spec/ruby/core/basicobject/initialize_spec.rb
diff options
context:
space:
mode:
authornagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-01-10 15:02:21 +0000
committernagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-01-10 15:02:21 +0000
commit5b23824b1cf98be53f2737467fa1818201690177 (patch)
treee7e078aa6f9aed25df9ef04c07cb7920c81e113f /spec/ruby/core/basicobject/initialize_spec.rb
parent4f0899d4bba4a03c4de45e742f9e37a89b8b32e2 (diff)
merge revision(s) 66756: [Backport #15479]
Mark array as "going to be modified" in `Array#reject!` Before this patch, if `reject!` is called on a shared array it can mutate the shared array rather than a copy. This patch marks the array as "going to be modified" so that the shared source array isn't mutated. [Bug #15479] [ruby-core:90781] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_5@66784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'spec/ruby/core/basicobject/initialize_spec.rb')
0 files changed, 0 insertions, 0 deletions