1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-07 21:34:13 +01:00

Add storage["errors"].

This commit is contained in:
Kris Maglione
2009-10-16 20:34:07 -04:00
parent 0b5f523b5d
commit 03707315c4

View File

@@ -1668,6 +1668,12 @@ const liberator = (function () //{{{
if (!(k in obj))
obj[k] = v;
}
if (liberator.storeErrors)
{
let errors = storage.newArray("errors", false);
errors.toString = function () [String(v[0]) + "\n" + v[1] for ([k, v] in this)].join("\n\n");
errors.push([new Date, obj + obj.stack]);
}
liberator.dump(obj);
liberator.dump("");
}