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

Make objectToString work better with generators and arrays

This commit is contained in:
Kris Maglione
2008-11-01 19:10:28 +00:00
parent dcff71b235
commit 6be68bad2c
2 changed files with 27 additions and 22 deletions

View File

@@ -310,12 +310,8 @@ function CommandLine() //{{{
if (typeof arg === "object")
arg = util.objectToString(arg, useColor);
else if (typeof arg === "function")
arg = util.escapeHTML(arg.toString());
else if (typeof arg === "number" || typeof arg === "boolean")
arg = "" + arg;
else if (typeof arg === "undefined")
arg = "undefined";
else if (typeof arg != "xml")
arg = String(arg);
return arg;
}