bugs 520 and 524
[org.ibex.core.git] / src / org / ibex / js / JSFunction.java
index 4e6a48d..1455d38 100644 (file)
@@ -108,8 +108,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(" ");