summaryrefslogtreecommitdiffhomepage
path: root/test/t/array.rb
diff options
context:
space:
mode:
authorfleuria <[email protected]>2013-10-01 21:32:16 +0800
committerfleuria <[email protected]>2013-10-01 21:32:16 +0800
commitaf5bec1fbc2fd2047d40524d3bfedea77de318b2 (patch)
treef29425133fa0ef4cbb9758f16625c6c7eb47c764 /test/t/array.rb
parente870ed708b0148c6fb6171c6102d3e7fa52d0964 (diff)
downloadmruby-af5bec1fbc2fd2047d40524d3bfedea77de318b2.tar.gz
mruby-af5bec1fbc2fd2047d40524d3bfedea77de318b2.zip
fix #1519
the 128th element in an array literal would trigger a corner case on splat mode checking, in which mruby will splat an that value into its parent array. the issue was masked by the fact of ary_concat() also accept non-array value: 1.9.3p286 :002> a = 1 1.9.3p286 :003> [*a] => [1] the expected behaviour should be OP_ARYPUSH the 128th element, instead of splat it by OP_ARYCAT.
Diffstat (limited to 'test/t/array.rb')
0 files changed, 0 insertions, 0 deletions