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

Prevent Invalid Function Parameter Type from AIOOB #2495

Merged
merged 7 commits into from
Oct 21, 2019

Conversation

Wealthyturtle
Copy link
Member

Description

Prevents invalid function parameter types from causing an ArrayIndexOutOfBoundException, i.e. something like

set {_x::*} to "1", "2" and "3"
set {_n} to max({_x::*}) # Should accept only Numbers, not Strings!

Will no longer cause an internal error


Target Minecraft Versions: Any
Requirements: None
Related Issues: #2384

@Wealthyturtle Wealthyturtle added enhancement Feature request, an issue about something that could be improved, or a PR improving something. bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. and removed enhancement Feature request, an issue about something that could be improved, or a PR improving something. labels Oct 9, 2019
@Wealthyturtle
Copy link
Member Author

Thanks for catching that! Fixed.

@bensku bensku merged commit dd17195 into SkriptLang:master Oct 21, 2019
@Wealthyturtle Wealthyturtle deleted the patch-5 branch October 21, 2019 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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