caught the bug

This commit is contained in:
Danny Yoo 2011-04-11 16:17:18 -04:00
parent 428882af6a
commit a3de6276c2

View File

@ -261,15 +261,14 @@
MACHINE.argcount = MACHINE.argcount + vals.length - 1;
};
var unspliceRestFromStack = function(MACHINE, depth, length) {
console.log(depth, length);
var lst = NULL;
var i;
for (i = 0; i < length; i++) {
lst = [MACHINE.env[MACHINE.env.length - depth - length + i], lst];
}
console.log(lst);
MACHINE.env.splice(MACHINE.env.length - 1 - depth - length,
MACHINE.env.splice(MACHINE.env.length - depth - length,
length,
lst);
MACHINE.argcount = MACHINE.argcount - length + 1;