Better error handling for interpreter.

This commit is contained in:
rogerl%netscape.com 1999-09-27 17:47:51 +00:00
Родитель 4953124561
Коммит 854aa7f8a3
2 изменённых файлов: 22 добавлений и 0 удалений

Просмотреть файл

@ -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;
}