# HG changeset patch # User Matthew Wild # Date 1270606030 -3600 # Node ID ac02246fc1d181fbe5dbc17144b764cf76eb43be # Parent 9c8710ea2a5a84213e4166acef38951aadea0251 Fix OP_RETURN to update this.frame diff -r 9c8710ea2a5a -r ac02246fc1d1 lvm.js --- 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);