Skip to content

Refine dclone definitions not to leak outside of REXML #37

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

Merged
merged 1 commit into from
Dec 9, 2020

Conversation

amatsuda
Copy link
Member

@amatsuda amatsuda commented Dec 9, 2020

While investigating my app, I found an unfamiliar dclone method on Object, which turned out to be defined here in xpath_parser.rb only for using in xpath_parser.rb.

I believe this is the very use case of Ruby's most underevaluated feature, Refinements.

With this patch, we're no longer seeing the dclone method leaking into our apps.

@kou kou merged commit d97b318 into ruby:master Dec 9, 2020
@kou
Copy link
Member

kou commented Dec 9, 2020

Thanks!

@amatsuda amatsuda deleted the refinements branch December 9, 2020 06:16
abrom added a commit to abrom/rexml that referenced this pull request May 19, 2021
ruby#37 fixes leakage of `dclone` method
@abrom abrom mentioned this pull request May 19, 2021
hsbt pushed a commit that referenced this pull request May 19, 2021
#37 fixes leakage of `dclone` method
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants