We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
headius
Learn more about funding links in repositories.
Report abuse
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
On JRuby, the code below prints 1, 2, 2. On MRI and Rubinius, it prints 1, 2, 1.
class C def block_param &blk p blk.call @foo = 2 p instance_eval &blk p blk.call end end @foo = 1 c = C.new c.block_param { @foo }
Tested with 1.7.13 and 1.7.16.
The text was updated successfully, but these errors were encountered:
See likely explanation and untested patch here: #1758 (comment)
Sorry, something went wrong.
Fully clone block + frame for instance_eval forms.
17c67a6
Fixes #1768 and #2060.
No branches or pull requests
On JRuby, the code below prints 1, 2, 2. On MRI and Rubinius, it prints 1, 2, 1.
Tested with 1.7.13 and 1.7.16.
The text was updated successfully, but these errors were encountered: