Actions
Bug #12716
closedArray#values_at fails for large argument size
Status:
Rejected
Assignee:
-
Target version:
-
ruby -v:
ruby 2.2.1p85 (2015-02-26 revision 49769) [i686-linux]
Description
Say I have this Array:
a = [1] * 140_000
Now, I call Array#values_at in this way:
a.values_at(*[1,2,3]*100_000)
I get this error:
Exception: SystemStackError: stack level too deep
--
0: (pry):6:in `__pry__'
Actions
Like0
Like0Like0Like0Like0