wren icon indicating copy to clipboard operation
wren copied to clipboard

[investigate] wrenCall arity check

Open ruby0x1 opened this issue 2 years ago • 1 comments

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.");

ruby0x1 avatar Dec 29 '22 09:12 ruby0x1

Related to #731

mhermier avatar Dec 29 '22 15:12 mhermier