Patched some very obscure bugs

This commit is contained in:
2023-02-12 16:54:44 +00:00
parent 8653a2663f
commit 9725f3c6a3
9 changed files with 112 additions and 13 deletions

View File

@@ -0,0 +1,19 @@
/*
Compiler note:
This is also to test a specific element in the compiler.
It ensures that when doing indexing and assignment in one statement,
the index is NOT on the right. If it is, then it is treated like a normal
assignment.
*/
//polyfill the _insert function
var a = [1, 2, 3];
var b = a[1];
assert b == 2, "index assignment left failed";
print "All good";