# HG changeset patch # User Matthew Wild # Date 1270606006 -3600 # Node ID 9c8710ea2a5a84213e4166acef38951aadea0251 # Parent 5240eaff785fffbc6cf53d09d1778a1a1951aac3 Implement OP_CALL for Lua functions (no return values yet) diff -r 5240eaff785f -r 9c8710ea2a5a lvm.js --- a/lvm.js Wed Apr 07 03:05:52 2010 +0100 +++ b/lvm.js Wed Apr 07 03:06:46 2010 +0100 @@ -293,6 +293,8 @@ else { // Lua function + this.frame = {f:f,pc:0,reg:args}; + this.callstack.push(this.frame); } break; case OP_CLOSURE: