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

Mon, 22 Nov 2010 02:32:01 +0000

author
Matthew Wild <mwild1@gmail.com>
date
Mon, 22 Nov 2010 02:32:01 +0000
changeset 114
82d7b057d330
parent 113
1e49dfb8ccdc
child 115
1555cb5a97b3

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);

mercurial