summaryrefslogtreecommitdiff
path: root/couchjs/js/util.js
diff options
context:
space:
mode:
Diffstat (limited to 'couchjs/js/util.js')
-rw-r--r--couchjs/js/util.js5
1 files changed, 0 insertions, 5 deletions
diff --git a/couchjs/js/util.js b/couchjs/js/util.js
index d498ee64..a7449315 100644
--- a/couchjs/js/util.js
+++ b/couchjs/js/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) {