2003/11/22 06:44:39
[org.ibex.core.git] / src / org / xwt / js / Interpreter.java
index c049088..fe118e5 100644 (file)
@@ -182,7 +182,7 @@ class Interpreter implements ByteCodes, Tokens {
                             }
                         }
                         scope = ((CallMarker)o).scope;
-                        pc = ((CallMarker)o).pc;
+                        pc = ((CallMarker)o).pc - 1;
                         f = (JSFunction)((CallMarker)o).f;
                         stack.push(retval);
                         continue OUTER;
@@ -290,7 +290,6 @@ class Interpreter implements ByteCodes, Tokens {
                         stack.pop();
                     }
                 }
-
                 Object[] rest = numArgs > 3 ? new Object[numArgs - 3] : null;
                 for(int i=numArgs - 1; i>2; i--) rest[i-3] = stack.pop();
                 Object a2 = numArgs <= 2 ? null : stack.pop();