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

[investigate] wrenCall arity check #1129

Open
ruby0x1 opened this issue Dec 29, 2022 · 1 comment
Open

[investigate] wrenCall arity check #1129

ruby0x1 opened this issue Dec 29, 2022 · 1 comment

Comments

@ruby0x1
Copy link
Member

ruby0x1 commented Dec 29, 2022

While exploring something else I noticed this, the closure passed to wrenCall checks arity but it's 0 in the cases I've seen.
#1124 is likely related, but good to add tests for when there.

 ASSERT(vm->fiber->stackTop - vm->fiber->stack >= closure->fn->arity,
        "Stack must have enough arguments for method.");
@mhermier
Copy link
Contributor

Related to #731

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

No branches or pull requests

2 participants