Fix OP_RETURN to update this.frame

Wed, 07 Apr 2010 03:07:10 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Wed, 07 Apr 2010 03:07:10 +0100
changeset 17
ac02246fc1d1
parent 16
9c8710ea2a5a
child 18
ae0b4ec242a3

Fix OP_RETURN to update this.frame

lvm.js file | annotate | diff | comparison | revisions
--- a/lvm.js	Wed Apr 07 03:06:46 2010 +0100
+++ b/lvm.js	Wed Apr 07 03:07:10 2010 +0100
@@ -307,6 +307,7 @@
 				break;
 			case OP_RETURN:
 				this.callstack.pop();
+				this.frame = this.callstack[this.callstack.length-1];
 				break;
 			default:
 				throw "Unhandled opcode: "+INS_OPCODE(instruction);

mercurial