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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user