mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
hash.rb: defer local variable initialization
This commit is contained in:
+1
-1
@@ -181,9 +181,9 @@ class Hash
|
||||
#
|
||||
# ISO 15.2.13.4.22
|
||||
def merge(*others, &block)
|
||||
i=0; len=others.size
|
||||
h = self.dup
|
||||
return h.__merge(*others) unless block
|
||||
i=0; len=others.size
|
||||
while i<len
|
||||
other = others[i]
|
||||
i += 1
|
||||
|
||||
Reference in New Issue
Block a user