mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
call to_hash before replacing hash
This commit is contained in:
@@ -156,6 +156,7 @@ class Hash
|
||||
# ISO 15.2.13.4.23
|
||||
def replace(hash)
|
||||
self.clear
|
||||
hash = hash.to_hash
|
||||
hash.each_key{|k|
|
||||
self[k] = hash[k]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user