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] Updated: (COUCHDB-895) Improved log() function to handle "undefined" as well as object's of type "xml"
Date Mon, 27 Sep 2010 19:50:33 GMT

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

Benjamin Young updated COUCHDB-895:
-----------------------------------

    Attachment: log_improvements.diff

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


Mime
View raw message