Return-Path: X-Original-To: apmail-couchdb-dev-archive@www.apache.org Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 720119E36 for ; Fri, 7 Oct 2011 08:54:54 +0000 (UTC) Received: (qmail 72048 invoked by uid 500); 7 Oct 2011 08:54:53 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 71991 invoked by uid 500); 7 Oct 2011 08:54:53 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 71983 invoked by uid 99); 7 Oct 2011 08:54:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Oct 2011 08:54:53 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Oct 2011 08:54:51 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 047612ADF7A for ; Fri, 7 Oct 2011 08:54:30 +0000 (UTC) Date: Fri, 7 Oct 2011 08:54:30 +0000 (UTC) From: "Benoit Chesneau (Commented) (JIRA)" To: dev@couchdb.apache.org Message-ID: <648434102.7127.1317977670019.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <629043574.12649.1317835654298.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (COUCHDB-1302) Fix couchjs MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/COUCHDB-1302?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13122633#comment-13122633 ] Benoit Chesneau commented on COUCHDB-1302: ------------------------------------------ I don't follow.... Since you get a string from the json , you can then easily do eval("function map(doc) { " + themapstring + "}) map(doc) .... doesn't change anything. And you won't have to check that map is really called as map in the json string. > Fix couchjs > ----------- > > Key: COUCHDB-1302 > URL: https://issues.apache.org/jira/browse/COUCHDB-1302 > Project: CouchDB > Issue Type: Improvement > Components: JavaScript View Server > Affects Versions: 1.1.1, 1.2, 1.3 > Reporter: Paul Joseph Davis > Priority: Blocker > > Figure out why some spidermonkeys have an error when doing: eval("function(){}") -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira