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

Fixed Binding#eval that failed to assign to the same variable #6275

Merged
merged 1 commit into from
May 26, 2024

Conversation

dearblue
Copy link
Contributor

In Binding#eval, two times parsing is executed.
The problem found in this case was caused by not passing an upper block to hold variables of the binding object during the first parsing.

The problem was uncovered by #6274.


Upon further review, mruby-3.3.0 had the problem, but 3.1.0 and 3.2.0 did not.
It appears that the bug was introduced before the 3.3.0 release.

In `Binding#eval`, two times parsing is executed.
The problem found in this case was caused by not passing an upper block to hold variables of the binding object during the first parsing.

The problem was uncovered by <mruby#6274>.
@dearblue dearblue requested a review from matz as a code owner May 26, 2024 11:33
@matz matz merged commit bf244d6 into mruby:master May 26, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants