mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-20 01:51:39 +00:00
Better error handling for interpreter.
This commit is contained in:
parent
4953124561
commit
854aa7f8a3
@ -1768,6 +1768,13 @@ public final class Context {
|
||||
open = close = colon = -1;
|
||||
}
|
||||
}
|
||||
|
||||
// Not found; so we should try the interpreter data.
|
||||
Context cx = getCurrentContext();
|
||||
if (cx.interpreterLine > 0 && cx.interpreterSourceFile != null) {
|
||||
linep[0] = cx.interpreterLine;
|
||||
return cx.interpreterSourceFile;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@ -1891,5 +1898,9 @@ public final class Context {
|
||||
private int enterCount;
|
||||
private ListenerCollection listeners;
|
||||
private Hashtable hashtable;
|
||||
|
||||
// For the interpreter to indicate line/source for error reports.
|
||||
int interpreterLine;
|
||||
String interpreterSourceFile;
|
||||
}
|
||||
|
||||
|
@ -1768,6 +1768,13 @@ public final class Context {
|
||||
open = close = colon = -1;
|
||||
}
|
||||
}
|
||||
|
||||
// Not found; so we should try the interpreter data.
|
||||
Context cx = getCurrentContext();
|
||||
if (cx.interpreterLine > 0 && cx.interpreterSourceFile != null) {
|
||||
linep[0] = cx.interpreterLine;
|
||||
return cx.interpreterSourceFile;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@ -1891,5 +1898,9 @@ public final class Context {
|
||||
private int enterCount;
|
||||
private ListenerCollection listeners;
|
||||
private Hashtable hashtable;
|
||||
|
||||
// For the interpreter to indicate line/source for error reports.
|
||||
int interpreterLine;
|
||||
String interpreterSourceFile;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user