diff options
| author | Jean Boussier <jean.boussier@gmail.com> | 2024-07-03 16:17:34 +0200 |
|---|---|---|
| committer | Jean Boussier <jean.boussier@gmail.com> | 2024-07-03 17:16:17 +0200 |
| commit | 786cf9db488dd83a8c13c88485602c778e5d9564 (patch) | |
| tree | 4938e53e0bbcf53cd940613409581e66a232471f /spec/ruby/core/array/shared/replace.rb | |
| parent | 5f20957b85cad4c4bb5bd46559d5ee13b019a970 (diff) | |
array.c: Remove outdated assertions
Following [Feature #20589] it can happen that we change the
capacity of a frozen array, so these assertions no longer make
sense.
Normally we don't hit them because `Array#freeze` shrinks the
array, but if somehow the Array was frozen using `Object#freeze`
then we may shrink it after it was frozen.
Diffstat (limited to 'spec/ruby/core/array/shared/replace.rb')
0 files changed, 0 insertions, 0 deletions
