couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benjamin Young (JIRA)" <j...@apache.org>
Subject [jira] Created: (COUCHDB-895) Improved log() function to handle "undefined" as well as object's of type "xml"
Date Mon, 27 Sep 2010 19:48:33 GMT
Improved log() function to handle "undefined" as well as object's of type "xml"
-------------------------------------------------------------------------------

                 Key: COUCHDB-895
                 URL: https://issues.apache.org/jira/browse/COUCHDB-895
             Project: CouchDB
          Issue Type: Improvement
          Components: JavaScript View Server
    Affects Versions: 1.0.1, 1.0, 0.11.2, 0.11.1
            Reporter: Benjamin Young
            Priority: Minor
             Fix For: 1.0.2


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()).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message