couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject [1/2] git commit: Revert "Fix function evaluation by newer SpiderMonkey's."
Date Thu, 06 Oct 2011 20:31:14 GMT
Updated Branches:
  refs/heads/1.1.x 4818fdd32 -> da22c19f7


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

This reverts commit 61f10e7590bd352b367ad426a56587cbef3700b6.


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

Branch: refs/heads/1.1.x
Commit: da22c19f7a7fdfae015dfb0db93b5bd9453eae6c
Parents: a628a43
Author: Robert Newson <rnewson@apache.org>
Authored: Thu Oct 6 20:49:48 2011 +0100
Committer: Robert Newson <rnewson@apache.org>
Committed: Thu Oct 6 20:49:48 2011 +0100

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


http://git-wip-us.apache.org/repos/asf/couchdb/blob/da22c19f/share/server/util.js
----------------------------------------------------------------------
diff --git a/share/server/util.js b/share/server/util.js
index f6fa60b..0b812fe 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) {


Mime
View raw message