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

Dump ivars befor hash elements #384

Merged
merged 2 commits into from
Jan 16, 2019
Merged

Conversation

tenderlove
Copy link
Member

Dump ivars before hash elements so that has elements that depend on ivars when being revived will work.

jkowens and others added 2 commits January 16, 2019 00:29
Currently the elements of a hash are revived before any ivar values.
This causes an issue when the `[]=` method references an instance
variable.
When the Hash is revived, the ivars will be set before elements.  This
is for the case when the hash setter depends on ivars set on the hash.
@tenderlove tenderlove merged commit 7bebf65 into master Jan 16, 2019
@tenderlove tenderlove deleted the jkowens-test_hash_with_ivar branch January 16, 2019 18:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants