-// Copyright 2003 Adam Megacz, see the COPYING file for licensing [GPL]
+// Copyright 2004 Adam Megacz, see the COPYING file for licensing [GPL]
package org.xwt.js;
import java.util.*;
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 {
Object invoke() throws JSExn {
Interpreter i = new Interpreter(getInvoker, false, null);
- i.stack.push(this);
+ i.stack.push(trapee);
i.stack.push(name);
- i.resume();
- return i.stack.pop();
+ return i.resume();
}
// FIXME: review; is necessary?