Fix OP_FORLOOP to set the loop counter variable properly

Implement LValue.len() and OP_LEN (no metamethod yet)

Switch to [] for representing tables (for now)

Don't use this.LValue() inside the VM - it's for JS types only

Fix OP_CALL to handle the case of B==1 (no parameters) and fix an off-by-one error that wouldn't fill the stack with nils properly

Implement OP_MOD, OP_POW, OP_UNM, OP_NOT (no metamethods yet)

New (passing) test, arithmetic.lua

(0) -100 -30 -10 -7 +7 +10 tip

mercurial