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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user