Calling by-arity chained function panics when slicing in ExecEnv::deinterlace
when providing less arguments #12
Labels
No labels
panic
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: AbleScript/ablescript#12
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Explanation
When calling functions chained by arity and argument list is not long enough to fulfill the arities of the functions in the chain, the interpreter panics when slicing the arguments.
Example code
Current behaviour
Expected behaviour
Call the second function in a chain with no arguments provided: