couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject [2/2] git commit: Revert "Fix function evaluation by newer SpiderMonkey's."
Date Fri, 07 Oct 2011 08:50:25 GMT
Revert "Fix function evaluation by newer SpiderMonkey's."

This reverts commit 889a4819e771086b096f05ce3f44b78fbc8b59e5, reversing
changes made to f66bfbefe8ab6d0ac67d2c2814eb19a851a7fdb3.


Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/9eed573b
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/9eed573b
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/9eed573b

Branch: refs/heads/1.2.x
Commit: 9eed573b3eedfd65f3b8acaad1c602b3fa2100a0
Parents: 3cd7480
Author: Robert Newson <rnewson@apache.org>
Authored: Fri Oct 7 09:49:24 2011 +0100
Committer: Robert Newson <rnewson@apache.org>
Committed: Fri Oct 7 09:49:24 2011 +0100

----------------------------------------------------------------------
 share/server/util.js |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/9eed573b/share/server/util.js
----------------------------------------------------------------------
diff --git a/share/server/util.js b/share/server/util.js
index 9991a1a..fca8856 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") {


Mime
View raw message