2004/01/07 20:37:33
[org.ibex.core.git] / src / org / xwt / js / Trap.java
index 1e299e5..8437128 100644 (file)
@@ -27,10 +27,10 @@ class Trap {
     private static final JSFunction getInvoker = new JSFunction("getInvoker", 0, null);
 
     static {
-        putInvoker.add(-1, ByteCodes.PUT, null);
-        putInvoker.add(-1, Tokens.RETURN, null);
-        getInvoker.add(-1, ByteCodes.GET, null);
-        getInvoker.add(-1, Tokens.RETURN, null);
+        putInvoker.add(1, ByteCodes.PUT, null);
+        putInvoker.add(2, Tokens.RETURN, null);
+        getInvoker.add(1, ByteCodes.GET, null);
+        getInvoker.add(2, Tokens.RETURN, null);
     }
     
     void invoke(Object value) throws JSExn {