1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 22:42:26 +01:00

More completion stuff.

This commit is contained in:
Kris Maglione
2008-11-22 06:53:44 +00:00
parent 4f1c195aa4
commit fcc799aa6a
12 changed files with 292 additions and 266 deletions

View File

@@ -57,9 +57,7 @@ const liberator = (function () //{{{
catch (e)
{
toJavaScriptConsole();
if (Components.utils.reportError)
Components.utils.reportError(e);
liberator.dump(e);
liberator.reportError(e);
}
}
@@ -1087,6 +1085,23 @@ const liberator = (function () //{{{
goQuitApplication();
},
reportError: function (error)
{
if (Components.utils.reportError)
Components.utils.reportError(error);
let obj = {
toString: function () error.toString(),
stack: { toString: function () "\n" + error.stack.replace(/^/mg, "\t") }
};
for (let [k, v] in Iterator(error))
{
if (!(k in obj))
obj[k] = v;
}
liberator.dump(obj);
liberator.dump("");
},
restart: function ()
{
const nsIAppStartup = Components.interfaces.nsIAppStartup;