}
public static String getSourceNameAndLineForThread(Thread t) {
- CompiledFunction cf = getContextForThread(t).getCurrentFunction();
+ JS.CompiledFunction cf = getContextForThread(t).getCurrentFunction();
if (cf == null) return "null";
return cf.getSourceName() + ":??";
}
/** fetches the currently-executing javascript function */
- public CompiledFunction getCurrentFunction() { return (CompiledFunction)currentFunction.get(Thread.currentThread()); }
+ public JS.CompiledFunction getCurrentFunction() { return (JS.CompiledFunction)currentFunction.get(Thread.currentThread()); }
public static Context getContextForThread(Thread t) {
Context ret = (Context)javaThreadToContextMap.get(t);
return ret;
}
- public static class TryMarker { public int location; public TryMarker(int location) { this.location = location; } }
public static class CallMarker { public CallMarker() { } }
public static class LoopMarker {
public int location;
this.label = label;
}
}
+ public static class TryMarker {
+ public int location;
+ public JS.Scope scope;
+ public TryMarker(int location, JS.Scope scope) {
+ this.location = location;
+ this.scope = scope;
+ }
+ }
}