hacks to cope with org.ibex.xt
[org.ibex.js.git] / src / org / ibex / js / JS.java
index 7cd1fc7..9aa9bd4 100644 (file)
@@ -8,6 +8,7 @@ import java.util.*;
 /** 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();
@@ -187,6 +188,12 @@ public class JS /*extends org.ibex.util.BalancedTree*/ implements Serializable {
         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();