natalie icon indicating copy to clipboard operation
natalie copied to clipboard

Hash#replace with self

Open seven1m opened this issue 1 year ago • 2 comments

I accidentally called Hash#replace with ~a copy of~ itself and found this bug:

h = { foo: 'bar' }
p h.replace(h)
p h

With CRuby:

{:foo=>"bar"}
{:foo=>"bar"}

With Natalie:

{}
{}

seven1m avatar Dec 27 '23 23:12 seven1m