1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-04-16 05:13:32 +02:00

Clean up completion tabbing.

This commit is contained in:
Kris Maglione
2008-12-03 17:15:16 -05:00
parent 8aa2e1ff00
commit b0df47b4bb
3 changed files with 236 additions and 191 deletions

View File

@@ -676,9 +676,12 @@ const liberator = (function () //{{{
window.dump(("config" in modules && config.name.toLowerCase()) + ": " + message);
},
dumpStack: function (msg)
dumpStack: function (msg, frames)
{
liberator.dump((msg || "") + (new Error()).stack);
let stack = Error().stack.replace(/(?:.*\n){2}/, "");
if (frames != null)
[stack] = stack.match(RegExp("(?:.*\n){0," + frames + "}"));
liberator.dump((msg || "Stack") + "\n" + stack);
},
echo: function (str, flags)
@@ -965,7 +968,10 @@ const liberator = (function () //{{{
io.source(file.path, false);
liberator.pluginFiles[file.path] = true;
}
catch (e) {};
catch (e)
{
liberator.reportError(e);
}
}
});
}