1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 07:17:59 +01:00

Fix Options#op

This commit is contained in:
Kris Maglione
2008-11-26 08:38:12 +00:00
parent 3a85f642e2
commit d35e3a0c8e
3 changed files with 18 additions and 15 deletions

View File

@@ -1095,17 +1095,21 @@ const liberator = (function () //{{{
{
if (Components.utils.reportError)
Components.utils.reportError(error);
let obj = {
toString: function () error.toString(),
stack: <>{error.stack.replace(/^/mg, "\t")}</>
};
for (let [k, v] in Iterator(error))
try
{
if (!(k in obj))
obj[k] = v;
let obj = {
toString: function () error.toString(),
stack: <>{error.stack.replace(/^/mg, "\t")}</>
};
for (let [k, v] in Iterator(error))
{
if (!(k in obj))
obj[k] = v;
}
liberator.dump(obj);
liberator.dump("");
}
liberator.dump(obj);
liberator.dump("");
catch (e) {}
},
restart: function ()