mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-10 03:25:50 +01:00
Twiddle file names/line numbers in exceptions during sourcing again.
This commit is contained in:
@@ -761,7 +761,15 @@ const liberator = (function () //{{{
|
|||||||
context[EVAL_RESULT] = null;
|
context[EVAL_RESULT] = null;
|
||||||
this.loadScript("chrome://liberator/content/eval.js", context);
|
this.loadScript("chrome://liberator/content/eval.js", context);
|
||||||
if (context[EVAL_ERROR])
|
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];
|
throw context[EVAL_ERROR];
|
||||||
|
}
|
||||||
return context[EVAL_RESULT];
|
return context[EVAL_RESULT];
|
||||||
}
|
}
|
||||||
finally
|
finally
|
||||||
|
|||||||
Reference in New Issue
Block a user