/** The minimum set of functionality required for objects which are manipulated by JavaScript */
public class JS /*extends org.ibex.util.BalancedTree*/ implements Serializable {
+ public static final long serialVersionUID = 572634985343962922L;
public static boolean checkAssertions = false;
public static final Object METHOD = new Object();
return ((JSFunction)j)._cloneWithNewParentScope(s);
}
+ // HACK
+ public static Vec getFormalArgs(JS j) { return ((JSFunction)j).formalArgs; }
+
+ // HACK
+ public static JSScope getParentScope(JS j) { return ((JSFunction)j).parentScope; }
+
public static Object eval(JS j) throws JSExn {
Interpreter cx = new Interpreter((JSFunction)j, false, new JSArray(), false);
return cx.resume();