lvm.js

changeset 114
82d7b057d330
parent 113
1e49dfb8ccdc
child 115
1555cb5a97b3
--- 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