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

Merge default.

--HG--
branch : mode-refactoring
This commit is contained in:
Kris Maglione
2010-10-08 15:32:20 -04:00
5 changed files with 23 additions and 19 deletions

View File

@@ -232,15 +232,7 @@ const Util = Module("Util", {
*
* @param {string|Object} msg The message to print.
*/
dump: function dump_() {
let msg = Array.map(arguments, function (msg) {
if (typeof msg == "object")
msg = util.objectToString(msg);
return msg;
}).join(", ");
msg = String.replace(msg, /\n?$/, "\n");
dump(msg.replace(/^./gm, services.get("dactyl:").name + ": $&"));
},
dump: defineModule.dump,
/**
* Dumps a stack trace to the console.