summaryrefslogtreecommitdiff
path: root/src/couchdb/priv/couch_js/main.c
AgeCommit message (Collapse)Author
2011-09-08Fix CouchJS compatibility with older SpiderMonkey.Paul Joseph Davis
This is a backport of the work to make CouchJS build against all of the major versions of SpiderMonkey. Thanks to Randall Leeds and Chris Coulson for the original patches. Backport based on r1137464 and r1164346 Fixes COUCHDB-1078 Fixes COUCHDB-1260 git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.1.x@1166525 13f79535-47bb-0310-9956-ffa450edef68
2009-11-27Fix weird error with JS_DefineFunctions call.Paul Joseph Davis
I found a fairly odd case with JS_DefineFunctions returning success without actually having defined any functions on the global object. This was happening on an Ubuntu 9.10 machine with Spidermonkey 1.7 which is most odd. I refactored the code to iterate over the JSFunctionSpec array and define the functions one by one which appears to alleviate the issue. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@885041 13f79535-47bb-0310-9956-ffa450edef68
2009-11-26Setup JavaScript command line runner.Paul Joseph Davis
All JS tests can now be run from the command line using the cURL adapter. In the future I would like to rework this and provide better TAP output. For now, each test is a single TAP assert. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@884675 13f79535-47bb-0310-9956-ffa450edef68
2009-11-26Complete refactoring of couch_js.Paul Joseph Davis
In particular, the cURL bindings have been rewritten to be more useful and easily applied in command line scripts. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@884672 13f79535-47bb-0310-9956-ffa450edef68