diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-06-06 11:24:42 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-06-06 11:24:42 +0000 |
commit | d37c38692dde8e74a2d7c83b182f58ba4c45bc48 (patch) | |
tree | 3edaad10ab0f162c9f1de213f94b91a597307bf4 /insns.def | |
parent | b0e3a28ddc1a4b0a52713171bbc4224444912c82 (diff) | |
download | ruby-d37c38692dde8e74a2d7c83b182f58ba4c45bc48.tar.gz ruby-d37c38692dde8e74a2d7c83b182f58ba4c45bc48.tar.xz ruby-d37c38692dde8e74a2d7c83b182f58ba4c45bc48.zip |
* insns.def (invokeblock): fix of splat argument.
(splat same as normal method dispatch)
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12452 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'insns.def')
-rw-r--r-- | insns.def | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1328,7 +1328,9 @@ invokeblock if (BUILTIN_TYPE(iseq) != T_NODE) { if (flag & VM_CALL_ARGS_SPLAT_BIT) { VALUE ary = TOPN(0); - if (CLASS_OF(ary) != rb_cArray) { + ary = rb_check_convert_type(ary, T_ARRAY, "Array", "to_splat"); + + if (NIL_P(ary)) { /* not a [BUG] */ } else { |