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

Last commit done right (or wrong, as it so happens, given Spidermonkeys buggy regex engine)

This commit is contained in:
Kris Maglione
2008-10-07 21:03:06 +00:00
parent 851901d553
commit 78d9d51434
4 changed files with 11 additions and 18 deletions

View File

@@ -44,7 +44,7 @@ const liberator = (function () //{{{
try
{
liberator.log(message, 0);
liberator.dump(message + "\n");
liberator.dump(message);
liberator[name] = func();
}
catch (e)
@@ -52,8 +52,7 @@ const liberator = (function () //{{{
toJavaScriptConsole();
if (Components.utils.reportError)
Components.utils.reportError(e);
liberator.dump(e + "\n");
liberator.dump(e.stack + "\n");
liberator.dump(e);
}
}
@@ -661,14 +660,7 @@ const liberator = (function () //{{{
dumpStack: function (msg)
{
try
{
someStatisticallyImprobableVariableName.foo = 1;
}
catch (e)
{
liberator.dump((msg || "") + e.stack);
}
liberator.dump((msg || "") + (new Error()).stack.replace(/.*\n/, ""));
},
// with (liberator) means, liberator is the default namespace "inside" eval