bugfix in url parsing for HTTP.java
[org.ibex.core.git] / src / org / ibex / js / JSFunction.java
index 6c0e89a..4bf41e4 100644 (file)
@@ -2,9 +2,10 @@
 package org.ibex.js;
 
 import java.io.*;
+import org.ibex.util.*;
 
 /** A JavaScript function, compiled into bytecode */
-class JSFunction extends JS implements ByteCodes, Tokens, org.ibex.Scheduler.Task {
+class JSFunction extends JS implements ByteCodes, Tokens, Task {
 
 
     // Fields and Accessors ///////////////////////////////////////////////
@@ -28,7 +29,6 @@ class JSFunction extends JS implements ByteCodes, Tokens, org.ibex.Scheduler.Tas
     /** if you enqueue a function, it gets invoked in its own pauseable context */
     public void perform() throws JSExn {
         Interpreter i = new Interpreter(this, true, new JSArray());
-        int oldpausecount = i.pausecount;
         i.resume();
     }
 
@@ -109,8 +109,7 @@ class JSFunction extends JS implements ByteCodes, Tokens, org.ibex.Scheduler.Tas
         StringBuffer sb = new StringBuffer(1024);
         sb.append("\n" + sourceName + ": " + firstLine + "\n");
         for (int i=0; i < size; i++) {
-            sb.append(i);
-            sb.append(": ");
+            sb.append(i).append(" (").append(line[i]).append(") :");
             if (op[i] < 0) sb.append(bytecodeToString[-op[i]]);
             else sb.append(codeToString[op[i]]);
             sb.append(" ");