Skip to content

spec: fix for Lua5.5#43

Merged
Tieske merged 2 commits into
lunarmodules:masterfrom
linuxmaniac:vseva/42
May 2, 2026
Merged

spec: fix for Lua5.5#43
Tieske merged 2 commits into
lunarmodules:masterfrom
linuxmaniac:vseva/42

Conversation

@linuxmaniac

Copy link
Copy Markdown
Contributor

fix #42

From https://www.lua.org/manual/5.5/manual.html#8.1

The control variable in for loops is read only. If you need to change it,
declare a local variable with the same name in the loop body.

Comment thread spec/01-lxp_spec.lua Outdated
Comment thread spec/01-lxp_spec.lua Outdated
fix lunarmodules#42

> From https://www.lua.org/manual/5.5/manual.html#8.1
>
> The control variable in for loops is read only. If you need to change it,
> declare a local variable with the same name in the loop body.
Comment thread spec/01-lxp_spec.lua Outdated

@Tieske Tieske left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@linuxmaniac would be nice if you can add the 5.5 target to the CI matrix.

@Tieske Tieske merged commit 843dad2 into lunarmodules:master May 2, 2026
16 checks passed
@Tieske

Tieske commented May 2, 2026

Copy link
Copy Markdown
Member

Manually tested the fix, icw #44

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

busted test fails on Lua5.5

4 participants