hacks to cope with org.ibex.xt
[org.ibex.js.git] / src / org / ibex / js / JSFunction.java
index 4bf41e4..9dfc5db 100644 (file)
@@ -21,7 +21,7 @@ class JSFunction extends JS implements ByteCodes, Tokens, Task {
     int size = 0;                  ///< the number of instruction/argument pairs
 
     JSScope parentScope;           ///< the default scope to use as a parent scope when executing this
-
+    Vec formalArgs = new Vec();
 
     // Public //////////////////////////////////////////////////////////////////////////////
 
@@ -55,6 +55,7 @@ class JSFunction extends JS implements ByteCodes, Tokens, Task {
         ret.arg = this.arg;
         ret.line = this.line;
         ret.size = this.size;
+        ret.formalArgs = this.formalArgs;
         ret.numFormalArgs = this.numFormalArgs;
         return ret;
     }