Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
0.10, 0.11
-
None
-
WinXP, setup-couchdb-0.11.0b880589.exe, setup-couchdb-0.10.0.exe
-
Regular Contributors Level (Easy to Medium)
Description
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"},
,
,
,
,
,
,
,
]
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)
,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\n",null,[object Object])@../share/couchdb/server/main.js:358
@../share/couchdb/server/main.js:842