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 3B78D7433 for ; Mon, 10 Oct 2011 17:22:53 +0000 (UTC) Received: (qmail 21569 invoked by uid 500); 10 Oct 2011 17:22:51 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 21519 invoked by uid 500); 10 Oct 2011 17:22:51 -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 21478 invoked by uid 99); 10 Oct 2011 17:22:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Oct 2011 17:22:51 +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; Mon, 10 Oct 2011 17:22:50 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 33620301E2A for ; Mon, 10 Oct 2011 17:22:30 +0000 (UTC) Date: Mon, 10 Oct 2011 17:22:30 +0000 (UTC) From: "Chas Emerick (Commented) (JIRA)" To: dev@couchdb.apache.org Message-ID: <662830405.15463.1318267350211.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (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: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/COUCHDB-577?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D131= 24313#comment-13124313 ]=20 Chas Emerick commented on COUCHDB-577: -------------------------------------- @davisp No; if you know how to obtain that info, I'd be more than happy to find out= . `couchjs -V` only responds with `1.1.3` (the rev of the couchbase build)= . Perhaps there's a clever way to get a version indicator from libmozjs, b= ut I don't know how. I downloaded the latest spidermonkey js REPL, and it seems to do just fine = with regex literals. Surely something so foundational couldn't be broken i= n the js engine used in Mozilla for years? (=E2=80=A6he asks naively=E2=80= =A6) =20 > 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-couchd= b-0.10.0.exe > Reporter: Thomas Mohaupt > > This show function failed on WinXP but pass on Linux: > function (doc, req) { > var rr2 =3D new RegExp("\n"); > rr2.exec("fafdadsds"); > var rr =3D /\n/; > rr.exec("fafdadsds"); > return "ok"; > } > The first RegExp is ok, but the second one (simple form) can not be execu= ted. > 1> [debug] [<0.73.0>] 'GET' /c2/_design/dash/_show/overview {1,1} > Headers: [{'Accept',"text/html,application/xhtml+xml,application/xml;q=3D= 0.9,*/*;q=3D0.8"}, > {'Accept-Charset',"ISO-8859-1,utf-8;q=3D0.7,*;q=3D0.7"}, > {'Accept-Encoding',"gzip,deflate"}, > {'Accept-Language',"de-de,de;q=3D0.8,en-us;q=3D0.5,en;q=3D0.3"}= , > {'Cache-Control',"max-age=3D0"}, > {'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.e= xec is not a function > 1> [info] [<0.98.0>] OS Process :: stacktrace: (null,[object Object])@:4 > runShow(function (doc, req) {var rr2 =3D new RegExp("\n");rr2.exec("fafda= dsds");var rr =3D /\n/;rr.exec("fafdadsds");return > "ok";},null,[object Object],"function (doc, req) {\n var rr2 =3D new Reg= Exp(\"\\n\");\n rr2.exec(\"fafdadsds\");\n var > rr =3D /\\n/;\n rr.exec(\"fafdadsds\");\n\n return \"ok\";\n}\n\n")@../= share/couchdb/server/main.js:388 > ("function (doc, req) {\n var rr2 =3D new RegExp(\"\\n\");\n rr2.exec(\= "fafdadsds\");\n var rr =3D /\\n/;\n rr.exec(\"fa > fdadsds\");\n\n return \"ok\";\n}\n\n",null,[object Object])@../share/co= uchdb/server/main.js:358 > @../share/couchdb/server/main.js:842 -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs: https://issues.apache.org/jira/secure/ContactAdministrators!default.jsp= a For more information on JIRA, see: http://www.atlassian.com/software/jira