Skip to content
Browse files

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

This reverts commit 61f10e7.
  • Loading branch information...
1 parent a628a43 commit da22c19f7a7fdfae015dfb0db93b5bd9453eae6c @rnewson rnewson committed Oct 6, 2011
Showing with 0 additions and 5 deletions.
  1. +0 −5 share/server/util.js
View
5 share/server/util.js
@@ -63,11 +63,6 @@ var Couch = {
},
compileFunction : function(source, ddoc) {
if (!source) throw(["error","not_found","missing function"]);
- // Some newer SpiderMonkey's appear to not like evaluating
- // an anonymous function at global scope. Simple fix just
- // wraps the source with parens so the function object is
- // returned correctly.
- source = "(" + source + ")";
try {
if (sandbox) {
if (ddoc) {

0 comments on commit da22c19

Please sign in to comment.
Something went wrong with that request. Please try again.