From dev-return-7421-apmail-couchdb-dev-archive=couchdb.apache.org@couchdb.apache.org Tue Nov 24 07:19:06 2009 Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 92723 invoked from network); 24 Nov 2009 07:19:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 24 Nov 2009 07:19:06 -0000 Received: (qmail 98373 invoked by uid 500); 24 Nov 2009 07:19:04 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 97780 invoked by uid 500); 24 Nov 2009 07:19:03 -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 97495 invoked by uid 99); 24 Nov 2009 07:19:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Nov 2009 07:19:03 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Nov 2009 07:19:00 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C8809234C498 for ; Mon, 23 Nov 2009 23:18:39 -0800 (PST) Message-ID: <1193385469.1259047119820.JavaMail.jira@brutus> Date: Tue, 24 Nov 2009 07:18:39 +0000 (UTC) From: "Thomas Mohaupt (JIRA)" To: dev@couchdb.apache.org Subject: [jira] Created: (COUCHDB-577) couchdb @ winxp: Simple RegExp's can not be executed 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 couchdb @ winxp: Simple RegExp's can not be executed ---------------------------------------------------- Key: COUCHDB-577 URL: https://issues.apache.org/jira/browse/COUCHDB-577 Project: CouchDB Issue Type: Bug Components: JavaScript View Server Affects Versions: 0.10, 0.11 Environment: WinXP, setup-couchdb-0.11.0b880589.exe, setup-couchdb-0.10.0.exe Reporter: Thomas Mohaupt This show function failed on WinXP but pass on Linux: function (doc, req) { var rr2 = new RegExp("\n"); rr2.exec("fafdadsds"); var rr = /\n/; rr.exec("fafdadsds"); return "ok"; } The first RegExp is ok, but the second one (simple form) can not be executed. 1> [debug] [<0.73.0>] 'GET' /c2/_design/dash/_show/overview {1,1} Headers: [{'Accept',"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"}, {'Accept-Charset',"ISO-8859-1,utf-8;q=0.7,*;q=0.7"}, {'Accept-Encoding',"gzip,deflate"}, {'Accept-Language',"de-de,de;q=0.8,en-us;q=0.5,en;q=0.3"}, {'Cache-Control',"max-age=0"}, {'Connection',"keep-alive"}, {'Host',"127.0.0.1:5984"}, {'Keep-Alive',"300"}, {'User-Agent',"Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5 (.NET CLR 3.5.30729)"}] 1> [debug] [<0.73.0>] OAuth Params: [] 1> [info] [<0.98.0>] OS Process :: function raised error: TypeError: rr.exec is not a function 1> [info] [<0.98.0>] OS Process :: stacktrace: (null,[object Object])@:4 runShow(function (doc, req) {var rr2 = new RegExp("\n");rr2.exec("fafdadsds");var rr = /\n/;rr.exec("fafdadsds");return "ok";},null,[object Object],"function (doc, req) {\n var rr2 = new RegExp(\"\\n\");\n rr2.exec(\"fafdadsds\");\n var rr = /\\n/;\n rr.exec(\"fafdadsds\");\n\n return \"ok\";\n}\n\n")@../share/couchdb/server/main.js:388 ("function (doc, req) {\n var rr2 = new RegExp(\"\\n\");\n rr2.exec(\"fafdadsds\");\n var rr = /\\n/;\n rr.exec(\"fa fdadsds\");\n\n return \"ok\";\n}\n\n",null,[object Object])@../share/couchdb/server/main.js:358 @../share/couchdb/server/main.js:842 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.