Skip to content

[ENHANCEMENT] Better function argument validation.#383

Open
Starexify wants to merge 2 commits intoFunkinCrew:experimentalfrom
Starexify:fix-arg-overflow
Open

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

Conversation

@Starexify
Copy link

@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.
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.

1 participant