fix no exit function

This commit is contained in:
2024-03-03 23:06:10 +00:00
parent 56f5fbd61a
commit efcc155e55
2 changed files with 2 additions and 2 deletions

View File

@@ -1 +1 @@
[{"Name":"welcome","Version":"1.0.0","URL":"http://isotope.wbell.dev/isotope-download?name=welcome\u0026version=1.0.0","Remote":"isotope.wbell.dev"},{"Name":"this","Version":"1.0.0","URL":"http://isotope.wbell.dev/isotope-download?name=this\u0026version=1.0.0","Remote":"isotope.wbell.dev"},{"Name":"csv.ar","Version":"1.0.0","URL":"http://isotope.wbell.dev/isotope-download?name=csv.ar\u0026version=1.0.0","Remote":"isotope.wbell.dev"}]
[]

View File

@@ -229,7 +229,7 @@ func makeGlobal() ArObject {
}}
vars["subprocess"] = builtinFunc{"subprocess", ArSubprocess}
vars["sequence"] = builtinFunc{"sequence", ArSequence}
vars["|"] = builtinFunc{"exit", func(a ...any) (any, ArErr) {
vars["exit"] = builtinFunc{"exit", func(a ...any) (any, ArErr) {
if len(a) == 0 {
os.Exit(0)
}