1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-05 20:05:45 +01:00

Twiddle file names/line numbers in exceptions during sourcing again.

This commit is contained in:
Kris Maglione
2008-12-12 23:35:35 -05:00
parent d94d8b6517
commit 689c101ff3

View File

@@ -761,7 +761,15 @@ const liberator = (function () //{{{
context[EVAL_RESULT] = null;
this.loadScript("chrome://liberator/content/eval.js", context);
if (context[EVAL_ERROR])
{
try
{
context[EVAL_ERROR].fileName = io.sourcing.file;
context[EVAL_ERROR].lineNumber += io.sourcing.line;
}
catch (e) {}
throw context[EVAL_ERROR];
}
return context[EVAL_RESULT];
}
finally