Allowed for empty arrays and trailing commas

This commit is contained in:
2024-12-10 10:44:13 +11:00
parent 1a36c14247
commit 5f75b5f1a3
4 changed files with 49 additions and 4 deletions

View File

@@ -15,3 +15,12 @@ barr[1][1] = 99;
assert barr == [[1, 2, 3],[4,99,6],[7,8,9]], "2-D array failed";
//test trailing commas
var a = [1, 2, 3, ];
print a;
//test empty arrays
var b = [];
print b;