# HG changeset patch # User Matthew Wild # Date 1290393121 0 # Node ID 82d7b057d330eea4a7afaffed25b4c29e38f0ac0 # Parent 1e49dfb8ccdc21276bb2e329cc15a5f20d87511c Don't use this.LValue() inside the VM - it's for JS types only diff -r 1e49dfb8ccdc -r 82d7b057d330 lvm.js --- 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);