Fix function evaluation by newer SpiderMonkey's.
Fix function evaluation by newer SpiderMonkey's.

Found this error using the Debian package for SM 1.8.5 and have since
had reports of users seeing it as well. The basic error is that some
versions of SpiderMonkey appear to dislike this call to eval:

    eval("function(){}");

The fix is simply to wrap the function source in parenthesis so that
SM is convinced that it knows how to evaluate a function.

Backport of r1176666 from trunk.



git-svn-id: eed9d206131b186e33f41325873c3684e4065c95@1176667 13f79535-47bb-0310-9956-ffa450edef68

PerilousApricot/bigcouch,cloudant/bigcouch,andrejb/cloudant_bigcouch,georgemarshall/bigcouch,Asquera/bigcouch,cloudant/bigcouch,linearregression/bigcouch,Asquera/bigcouch,georgemarshall/bigcouch,georgemarshall/bigcouch,PerilousApricot/bigcouch,linearregression/bigcouch,PerilousApricot/bigcouch,cloudant/bigcouch,cloudant/bigcouch,georgemarshall/bigcouch,Asquera/bigcouch,breezjw/bigcouch,breezjw/bigcouch,PerilousApricot/bigcouch,linearregression/bigcouch,andrejb/cloudant_bigcouch,andrejb/cloudant_bigcouch,Asquera/bigcouch,linearregression/bigcouch,andrejb/cloudant_bigcouch,Asquera/bigcouch,cloudant/bigcouch,linearregression/bigcouch,georgemarshall/bigcouch,PerilousApricot/bigcouch,andrejb/cloudant_bigcouch,kofron/bigcouch,breezjw/bigcouch,andrejb/cloudant_bigcouch,PerilousApricot/bigcouch,kofron/bigcouch,kofron/bigcouch,kofron/bigcouch,breezjw/bigcouch,andrejb/cloudant_bigcouch,cloudant/bigcouch,kofron/bigcouch,kofron/bigcouch,cloudant/bigcouch,breezjw/bigcouch,Asquera/bigcouch,linearregression/bigcouch,breezjw/bigcouch,georgemarshall/bigcouch,linearregression/bigcouch