You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Jan Lehnardt (JIRA)" <ji...@apache.org> on 2010/11/15 01:08:14 UTC

[jira] Closed: (COUCHDB-895) Improved log() function to handle "undefined" as well as object's of type "xml"

     [ https://issues.apache.org/jira/browse/COUCHDB-895?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jan Lehnardt closed COUCHDB-895.
--------------------------------

    Resolution: Fixed

> 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: 0.11.1, 0.11.2, 1.0, 1.0.1
>            Reporter: Benjamin Young
>            Priority: Minor
>             Fix For: 1.0.2, 1.1
>
>         Attachments: log_improvements.diff
>
>
> 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.