mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Hash#replace should copy default from original even when the default value of the original is not set
This commit is contained in:
+1
-1
@@ -154,7 +154,7 @@ class Hash
|
||||
}
|
||||
if hash.default_proc
|
||||
self.default_proc = hash.default_proc
|
||||
elsif hash.default
|
||||
else
|
||||
self.default = hash.default
|
||||
end
|
||||
self
|
||||
|
||||
Reference in New Issue
Block a user