Skip to content

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

Merged
matz merged 1 commit into
mruby:masterfrom
dearblue:binding.eval
May 26, 2024
Merged

Fixed Binding#eval that failed to assign to the same variable#6275
matz merged 1 commit into
mruby:masterfrom
dearblue:binding.eval

Conversation

@dearblue

Copy link
Copy Markdown
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>.
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.

2 participants