Skip to content

Commit

Permalink
Merge branch '1.8.x'
Browse files Browse the repository at this point in the history
  • Loading branch information
odino committed Nov 9, 2019
2 parents 4436ccf + a15607c commit 18888f9
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 5 deletions.
Binary file modified docs/abs.wasm
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ if [ "${MACHINE_TYPE}" = 'x86_64' ]; then
ARCH="amd64"
fi

VERSION=1.8.1
VERSION=1.8.2

echo "Trying to detect the details of your architecture."
echo ""
Expand Down
2 changes: 1 addition & 1 deletion docs/misc/3pl.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ another file is specified:

```
$ ~/projects/abs/builds/abs
Hello alex, welcome to the ABS (1.8.1) programming language!
Hello alex, welcome to the ABS (1.8.2) programming language!
Type 'quit' when you're done, 'help' if you get lost!
⧐ require("abs-sample-module")
Expand Down
2 changes: 1 addition & 1 deletion docs/types/builtin-function.md
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ $ cat ~/.absrc
source("~/abs/lib/library.abs")
$ abs
Hello user, welcome to the ABS (1.8.1) programming language!
Hello user, welcome to the ABS (1.8.2) programming language!
Type 'quit' when you are done, 'help' if you get lost!
⧐ adder(1, 2)
3
Expand Down
1 change: 1 addition & 0 deletions evaluator/evaluator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -803,6 +803,7 @@ func TestBuiltinFunctions(t *testing.T) {
{`find([1,2], f(x) {x == "some"})`, nil},
{`arg("o")`, "argument 0 to arg(...) is not supported (got: o, allowed: NUMBER)"},
{`arg(99)`, ""},
{`arg(-1)`, ""},
{`pwd().split("").reverse().slice(0, 33).reverse().join("").replace("\\", "/", -1).suffix("/evaluator")`, true}, // Little trick to get travis to run this test, as the base path is not /go/src/
{`cwd = cd(); cwd == pwd()`, true},
{`cwd = cd("path/to/nowhere"); cwd == pwd()`, false},
Expand Down
2 changes: 1 addition & 1 deletion evaluator/functions.go
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,7 @@ func argFn(tok token.Token, env *object.Environment, args ...object.Object) obje
arg := args[0].(*object.Number)
i := arg.Int()

if int(i) > len(os.Args)-1 {
if i > len(os.Args)-1 || i < 0 {
return &object.String{Token: tok, Value: ""}
}

Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/abs-lang/abs/repl"
)

var Version = "1.8.1"
var Version = "1.8.2"

// The ABS interpreter
func main() {
Expand Down

0 comments on commit 18888f9

Please sign in to comment.