add subprocess

This commit is contained in:
2023-03-21 23:03:25 +00:00
parent 54ea92886e
commit 4f3d419c28
12 changed files with 202 additions and 146 deletions

View File

@@ -68,7 +68,7 @@ func ArArray(arr []any) ArObject {
// a[0] is start
// a[1] is end
// a[2] is step
if len(a) < 0 || len(a) > 3 {
if len(a) > 3 {
return nil, ArErr{"TypeError", "expected 1 to 3 arguments, got " + fmt.Sprint(len(a)), 0, "", "", true}
}
var (