We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d030d1e commit 39e88fcCopy full SHA for 39e88fc
vm/vm.go
@@ -602,6 +602,10 @@ func (vm *VM) scope() *Scope {
602
// reverse order. Because the estimation can fall short, this function can
603
// occasionally make a new allocation.
604
func (vm *VM) getArgsForFunc(bufPtr *[]any, program *Program, needed int) []any {
605
+ if needed == 0 || bufPtr == nil && program == nil {
606
+ return nil
607
+ }
608
+
609
// Step 1: fix estimations and preallocate
610
if *bufPtr == nil {
611
estimatedFnArgsCount := estimateFnArgsCount(program)
0 commit comments