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

Fix loop behaviour from super call. #7537

Merged
merged 3 commits into from
Jan 26, 2025

Conversation

Moderocky
Copy link
Member

Description

Fixes an issue with subclasses of loop which couldn't call LoopSection's setNext because it was obscured by the overriding method.
This was causing triggers to terminate early (though I'm actually not sure why, it seems a bit dodgy, but this was definitely the cause). As a result, it was reporting as correct in the test system because the tests only measure for failures (and the assertions were just never being reached).

I also fixed a couple of other minor problems that had been hidden by this, since their tests were getting skipped.

Fixes #7536

@Moderocky Moderocky added bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. 2.11 Targeting a 2.11.X version release labels Jan 26, 2025
Copy link
Member

Choose a reason for hiding this comment

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

Broadcasts can be removed

@Moderocky Moderocky merged commit 5c2ce78 into SkriptLang:dev/patch Jan 26, 2025
5 checks passed
@Moderocky Moderocky deleted the fix-for-each branch January 26, 2025 21:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.11 Targeting a 2.11.X version release bug An issue that needs to be fixed. Alternatively, a PR fixing an issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants