summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Newson <rnewson@apache.org>2011-10-06 20:49:48 +0100
committerRobert Newson <rnewson@apache.org>2011-10-06 20:49:48 +0100
commitda22c19f7a7fdfae015dfb0db93b5bd9453eae6c (patch)
tree322779fff84d9f5c78cc06c0dd9fa4e577da8800
parenta628a43b58c7f85e228b148cea5d74a8b24bff70 (diff)
Revert "Fix function evaluation by newer SpiderMonkey's."
This reverts commit 61f10e7590bd352b367ad426a56587cbef3700b6.
-rw-r--r--share/server/util.js5
1 files changed, 0 insertions, 5 deletions
diff --git a/share/server/util.js b/share/server/util.js
index f6fa60bb..0b812fe1 100644
--- a/share/server/util.js
+++ b/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) {