зеркало из https://github.com/mozilla/pjs.git
Updating exception debugging to reflect changes due to http://bugzilla.mozilla.org/show_bug.cgi?id=210605 .
This commit is contained in:
Родитель
0fd587e9cb
Коммит
63f322dbc8
|
@ -2619,7 +2619,6 @@ public class Main extends JFrame implements Debugger, ContextListener {
|
|||
return item;
|
||||
}
|
||||
|
||||
|
||||
void handleBreakpointHit(Context cx) {
|
||||
breakFlag = false;
|
||||
interrupted(cx);
|
||||
|
@ -2628,20 +2627,15 @@ public class Main extends JFrame implements Debugger, ContextListener {
|
|||
private static Object unwrapException(Object ex) {
|
||||
for (;;) {
|
||||
if (ex instanceof JavaScriptException) {
|
||||
ex = ScriptRuntime.unwrapJavaScriptException
|
||||
((JavaScriptException)ex);
|
||||
ex = ((JavaScriptException)ex).getValue();
|
||||
} else if (ex instanceof EcmaError) {
|
||||
ex = ((EcmaError)ex).getErrorObject();
|
||||
} else if (ex instanceof NativeJavaObject) {
|
||||
ex = ((NativeJavaObject)ex).unwrap();
|
||||
break;
|
||||
} else if (ex instanceof WrappedException) {
|
||||
Object w = ((WrappedException)ex).unwrap();
|
||||
if (w instanceof Throwable) {
|
||||
ex = w;
|
||||
ex = ((WrappedException)ex).getWrappedException();
|
||||
continue;
|
||||
}
|
||||
break;
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче