In case no argument is passed to Vector#flatten, we call
Array#flatten(nil); but the correct argument to pass is -1 to indicate
endless recursive flatenning.
While MRI accepts both -1 and nil, Rubinius and JRuby don't accept an
explicit nil argument to Array#flatten.
With this patch applied the Hamster specs pass on Rubinius 2.3.0 .
In case no argument is passed to
Vector#flatten
, we callArray#flatten(nil)
; but the correct argument to pass is -1 to indicate endless recursive flatenning.While MRI accepts both -1 and
nil
, Rubinius and JRuby don't accept an explicitnil
argument toArray#flatten
.With this patch applied the Hamster specs pass on Rubinius 2.3.0 .
See relevant discussion in the Rubinius ticket: https://github.com/rubinius/rubinius/pull/3175