* insns.def (invokeblock): fix of splat argument.
(splat same as normal method dispatch) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12452 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
7e5b2304c5
commit
6c5a50ff33
@ -1,3 +1,8 @@
|
|||||||
|
Wed Jun 6 20:23:46 2007 Koichi Sasada <ko1@atdot.net>
|
||||||
|
|
||||||
|
* insns.def (invokeblock): fix of splat argument.
|
||||||
|
(splat same as normal method dispatch)
|
||||||
|
|
||||||
Wed Jun 6 16:27:25 2007 NAKAMURA Usaku <usa@ruby-lang.org>
|
Wed Jun 6 16:27:25 2007 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||||
|
|
||||||
* insns.def: fixed indentation.
|
* insns.def: fixed indentation.
|
||||||
|
@ -1328,7 +1328,9 @@ invokeblock
|
|||||||
if (BUILTIN_TYPE(iseq) != T_NODE) {
|
if (BUILTIN_TYPE(iseq) != T_NODE) {
|
||||||
if (flag & VM_CALL_ARGS_SPLAT_BIT) {
|
if (flag & VM_CALL_ARGS_SPLAT_BIT) {
|
||||||
VALUE ary = TOPN(0);
|
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] */
|
/* not a [BUG] */
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user