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

interp: fix issue where a var is reused instead of redefined #1595

Merged
merged 2 commits into from
Sep 21, 2023

Conversation

mvertes
Copy link
Member

@mvertes mvertes commented Sep 21, 2023

Avoid a spurious optimisation which forces a variable to be reused instead of redefined for assignment operation. This ensures that a variable defined in a loop is re-allocated, preserving the previous instance when used by a closure for example.

Fix #1594

@mvertes mvertes added this to the v0.15.x milestone Sep 21, 2023
@traefiker traefiker merged commit 79b7420 into traefik:master Sep 21, 2023
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/core bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

incorrect output when closure is set in a loop
3 participants