Fri, 19 Nov 2010 19:22:20 +0000
Fix for passing arguments to the entry call frame
lvm.js | file | annotate | diff | comparison | revisions |
--- a/lvm.js Fri Nov 19 19:21:48 2010 +0000 +++ b/lvm.js Fri Nov 19 19:22:20 2010 +0000 @@ -378,7 +378,7 @@ else frame.reg = []; this.callstack.push(frame); - for(var i=0;i<lfFunction.maxStackSize;i++) + for(var i=frame.reg.length;i<lfFunction.maxStackSize;i++) frame.reg[i] = this.LValue(null); return this.run(frame); }