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