l18n changes
fix exception reporting
This commit is contained in:
rginda%netscape.com 2001-04-21 02:02:41 +00:00
Родитель 38596baa45
Коммит c7d63588d9
1 изменённых файлов: 12 добавлений и 7 удалений

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

@ -126,16 +126,19 @@ function con_ieval (e)
{
var str = "";
if ("name" in ex && "fileName" in ex && "lineNumber" in ex &&
"message" in ex)
if (ex.fileName && ex.lineNumber && ex.message)
{
if (!ex.name)
ex.name = "Error";
/* if it looks like a normal exception, print all the bits */
str = ex.name + ": " + ex.fileName + ", line " + ex.lineNumber +
": " + ex.message;
str = getMsg (MSN_EVAL_ERROR, [ex.name, ex.fileName, ex.lineNumber,
ex.message]);
}
else
/* otherwise, just convert to a string */
str = String(ex);
display (str, "ERROR");
str = getMsg (MSN_EVAL_THREW, String(ex));
display (str, MT_ERROR);
}
return true;
@ -186,6 +189,8 @@ console.onUnload =
function con_unload (e)
{
dd ("Application venkman, 'JavaScript Debugger' unloaded.");
detachDebugger();
}
window.onresize =