Skip to content

[ENHANCEMENT] Better function argument validation.#383

Merged
AbnormalPoof merged 2 commits intoFunkinCrew:experimentalfrom
Starexify:fix-arg-overflow
Mar 29, 2026
Merged

[ENHANCEMENT] Better function argument validation.#383
AbnormalPoof merged 2 commits intoFunkinCrew:experimentalfrom
Starexify:fix-arg-overflow

Conversation

@Starexify
Copy link
Copy Markdown

@Starexify Starexify commented Mar 25, 2026

Linked Issues

Description

This PR fixes the argument validation crashing when native functions call scripts with less arguments than function parameters.
Also add a new error EExceedArgsCount that is thrown when passing more arguments than the function parameters have.
And finally changed the EInvalidArgCount error message from:

Invalid number of given arguments. Got x, required y for function
to
Provided arguments are fewer than the required function parameters. Got x, required y for function

Starexify and others added 2 commits March 25, 2026 23:13
Co-authored-by: NotHyper-474 <40342021+nothyper-474@users.noreply.github.com>
…nd reword `EInvalidArgCount` for better clarity.
@AbnormalPoof AbnormalPoof merged commit a38409a into FunkinCrew:experimental Mar 29, 2026
@Starexify Starexify deleted the fix-arg-overflow branch March 29, 2026 18:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants