1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-25 12:45:46 +01:00

Improve objectToString a bit

This commit is contained in:
Kris Maglione
2008-11-24 00:22:28 +00:00
parent 7d8eb88954
commit 0c003d63d6
3 changed files with 22 additions and 16 deletions

View File

@@ -1095,7 +1095,7 @@ const liberator = (function () //{{{
Components.utils.reportError(error);
let obj = {
toString: function () error.toString(),
stack: { toString: function () "\n" + error.stack.replace(/^/mg, "\t") }
stack: <>{error.stack.replace(/^/mg, "\t")}</>
};
for (let [k, v] in Iterator(error))
{