diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-02-15 20:41:38 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-02-15 20:41:38 +0000 |
commit | fde3c421bea8bd514acddb4c1b2d5f81afd1af36 (patch) | |
tree | 175471344dc9be9ccaabf8ef1f7dcf2998edfe49 /insns.def | |
parent | e315f8471d2c2fbe3c5d96a9bf8d987fe5786f3b (diff) |
* insns.def (splatarray): make new array if flag is set.
* compile.c (iseq_compile_each): make new array with
splat. [ruby-core:21901][Feature #1125]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34633 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'insns.def')
-rw-r--r-- | insns.def | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -533,6 +533,9 @@ splatarray if (NIL_P(tmp)) { tmp = rb_ary_new3(1, ary); } + else if (RTEST(flag)) { + tmp = rb_ary_dup(tmp); + } obj = tmp; } |