summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/d5/tengo/objects/compiled_function.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/d5/tengo/objects/compiled_function.go')
-rw-r--r--vendor/github.com/d5/tengo/objects/compiled_function.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/vendor/github.com/d5/tengo/objects/compiled_function.go b/vendor/github.com/d5/tengo/objects/compiled_function.go
index 606e3d90..d42e69ec 100644
--- a/vendor/github.com/d5/tengo/objects/compiled_function.go
+++ b/vendor/github.com/d5/tengo/objects/compiled_function.go
@@ -10,6 +10,7 @@ type CompiledFunction struct {
Instructions []byte
NumLocals int // number of local variables (including function parameters)
NumParameters int
+ VarArgs bool
SourceMap map[int]source.Pos
}
@@ -34,6 +35,7 @@ func (o *CompiledFunction) Copy() Object {
Instructions: append([]byte{}, o.Instructions...),
NumLocals: o.NumLocals,
NumParameters: o.NumParameters,
+ VarArgs: o.VarArgs,
}
}