diff --git a/compiler/test/stdlib/array.test.gr b/compiler/test/stdlib/array.test.gr index 3063463c6..86871206e 100644 --- a/compiler/test/stdlib/array.test.gr +++ b/compiler/test/stdlib/array.test.gr @@ -21,7 +21,6 @@ assert Array.tryInit(0, n => Ok(n + 3)) == Ok([>]) assert Array.tryInit(3, n => if (n == 1) Err("stop") else Ok(n)) == Err("stop") assert Array.tryInit(0, n => if (n == 1) Err("stop") else Ok(n)) == Ok([>]) - // Array.get assert Array.get(1, arr) == 2 diff --git a/stdlib/array.gr b/stdlib/array.gr index 47bec45b9..3b5cd0e32 100644 --- a/stdlib/array.gr +++ b/stdlib/array.gr @@ -172,7 +172,7 @@ provide let tryInit = (length: Number, fn: Number => Result) => { ignore(Memory.decRef(WasmI32.load(array, _ARRAY_START_OFFSET + j))) } return Err(e) - } + }, } } return Ok(WasmI32.toGrain(array): Array)