diff options
author | Robert Newson <rnewson@apache.org> | 2011-10-07 09:50:02 +0100 |
---|---|---|
committer | Robert Newson <rnewson@apache.org> | 2011-10-07 09:50:02 +0100 |
commit | 06046bf3acf2cd0f1b0d217e34f120b98dc6e9b9 (patch) | |
tree | a509da55e0f7ef62641f719b4e7d9c30fb526b60 | |
parent | e43a0fa86da23168bed9b9c828f882fd2061afcb (diff) | |
download | couchdb-06046bf3acf2cd0f1b0d217e34f120b98dc6e9b9.tar.gz |
Revert "Fix function evaluation by newer SpiderMonkey's."
This reverts commit 293ae2236859629a6dabc3727d0ccca977b8a8f8.
-rw-r--r-- | share/server/util.js | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/share/server/util.js b/share/server/util.js index 9991a1a80..fca885656 100644 --- a/share/server/util.js +++ b/share/server/util.js @@ -63,11 +63,7 @@ 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 + ")"; + var evaluate_function_source = function(source, evalFunction, sandbox) { sandbox = sandbox || {}; if(typeof CoffeeScript === "undefined") { |