Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replacing a hash with itself returns an empty hash in ruby 1.9 compatibility mode #544

Merged
merged 1 commit into from Feb 26, 2013

Conversation

Projects
None yet
2 participants
@glucero
Copy link
Contributor

glucero commented Feb 21, 2013

jruby (ruby 1.9 mode):

h = {:one => 1}
=> { :one => 1 }
h.replace h
=> {}

mri (1.8.7 through 2.0.0-rc2) and jruby (ruby 1.8 mode):

h = {:one => 1}
=> { :one => 1 }
h.replace h
=> { :one => 1 }

@headius

This comment has been minimized.

Copy link
Member

headius commented Feb 26, 2013

Wow, wacky! Can you also put together a spec PR for https://github.com/rubyspec/rubyspec?

headius added a commit that referenced this pull request Feb 26, 2013

Merge pull request #544 from glucero/master
replacing a hash with itself returns an empty hash in ruby 1.9 compatibility mode

@headius headius merged commit c17ea46 into jruby:master Feb 26, 2013

1 check passed

default The Travis build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.