getInvoker.add(2, Tokens.RETURN, null);
}
+ boolean readTrap() { return f.numFormalArgs == 0; }
+ boolean writeTrap() { return f.numFormalArgs != 0; }
+
void invoke(Object value) throws JSExn {
Interpreter i = new Interpreter(putInvoker, false, null);
i.stack.push(trapee);
}
// FIXME: review; is necessary?
- static class TrapScope extends JSScope {
+ /*static class TrapScope extends JSScope {
Trap t;
Object val = null;
boolean cascadeHappened = false;
if (key.equals("trapname")) return t.name;
return super.get(key);
}
- }
+ }*/
}