Project

General

Profile

Bug #12716

Updated by nobu (Nobuyoshi Nakada) over 7 years ago

Say I have this Array: 

 
 ~~~ ruby 
 a = [1] * 140_000 
 ~~~ 

 Now, I call Array#values_at in this way: 

 
 ~~~ ruby 
 a.values_at(*[1,2,3]*100_000) 
 ~~~ 

 I get this error: 

 
 ~~~ 
 Exception: SystemStackError: stack level too deep 
 -- 
 0: (pry):6:in `__pry__' 

 ~~~ 
 

Back