Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
0.11.1, 0.11.2, 1.0, 1.0.1
-
None
-
New Contributors Level (Easy)
Description
Currently (1.0.1 and below), if you try log(undefined) in a map/reduce or other JS function in CouchDB, you'll get a rather verbose stack trace. This patch casts the message var as a String to avoid that stack trace and output the text representation of "undefined".
Additionally, this patch includes outputting XML objects (build with E4X: new XML('<test />')) as string representations of the entire XML (using toXMLString()).