2003/11/25 09:59:16
[org.ibex.core.git] / src / org / xwt / js / Trap.java
index 2986079..a0ed711 100644 (file)
@@ -25,12 +25,14 @@ 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);
+        putInvoker.add(-1, Tokens.RETURN, null);
     }
     
     void invoke(Object key, Object value) {
         Interpreter i = new Interpreter(putInvoker, false, null);
-        i.stack.push(this);
+        i.stack.push(trapee);
         i.stack.push(key);
         i.stack.push(value);
         i.resume();