Mon, 22 Nov 2010 02:32:01 +0000
Don't use this.LValue() inside the VM - it's for JS types only
lvm.js | file | annotate | diff | comparison | revisions |
--- a/lvm.js Mon Nov 22 02:31:16 2010 +0000 +++ b/lvm.js Mon Nov 22 02:32:01 2010 +0000 @@ -463,8 +463,8 @@ break; case OP_GETTABLE: var C = INS_C(instruction); - var value = frame.reg[INS_B(instruction)].index(RK(frame, C)).value; - frame.reg[INS_A(instruction)] = this.LValue(value); + var value = frame.reg[INS_B(instruction)].index(RK(frame, C)); + frame.reg[INS_A(instruction)] = new LValue(this, value.type, value.value); break; case OP_SETTABLE: var C = INS_C(instruction);