diff options
Diffstat (limited to 'vendor/github.com/d5/tengo/objects/builtin_copy.go')
-rw-r--r-- | vendor/github.com/d5/tengo/objects/builtin_copy.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/vendor/github.com/d5/tengo/objects/builtin_copy.go b/vendor/github.com/d5/tengo/objects/builtin_copy.go new file mode 100644 index 00000000..4b254b2b --- /dev/null +++ b/vendor/github.com/d5/tengo/objects/builtin_copy.go @@ -0,0 +1,9 @@ +package objects + +func builtinCopy(args ...Object) (Object, error) { + if len(args) != 1 { + return nil, ErrWrongNumArguments + } + + return args[0].Copy(), nil +} |