diff options
Diffstat (limited to 'pkg')
| -rw-r--r-- | pkg/lang/modules/core/natives.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pkg/lang/modules/core/natives.go b/pkg/lang/modules/core/natives.go index 8a24663..7fc9a01 100644 --- a/pkg/lang/modules/core/natives.go +++ b/pkg/lang/modules/core/natives.go @@ -90,6 +90,11 @@ var Natives = []any{ } element := args[1] + element, err = element.Clone(exe.Mem()) + if err != nil { + return value.Value{}, err + } + return value.Value{}, array.Push(exe.Mem(), element) }), n(":core:Array:pop", 1, func(exe executor.Exectutor, args []value.Value) (value.Value, error) { |
