Skip to content
This repository was archived by the owner on Oct 3, 2021. It is now read-only.

Commit 7e29095

Browse files
committed
tweak: implement amount of parameters
1 parent 1297de1 commit 7e29095

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

models/object/function.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@ func (f *Function) Type() string { return FUNCTION }
1515
func (f *Function) Inspect() string { return "function" }
1616

1717
type CompiledFunction struct {
18-
Instructions []byte
19-
NumLocals int
18+
Instructions []byte
19+
NumLocals int
20+
NumParameters int
2021
}
2122

2223
func (cf *CompiledFunction) Type() string { return COMPILED_FUNCTION }

0 commit comments

Comments
 (0)