Calling by-arity chained function panics when slicing in ExecEnv::deinterlace
when providing less arguments #12
Labels
No Label
panic
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: AbleScript/ablescript#12
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. 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: