couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kocol...@apache.org
Subject [13/50] git commit: Revert "Fix function evaluation by newer SpiderMonkey's."
Date Wed, 26 Oct 2011 18:05:32 GMT
Revert "Fix function evaluation by newer SpiderMonkey's."

This reverts commit 293ae2236859629a6dabc3727d0ccca977b8a8f8.


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

Branch: refs/heads/1319-large-headers-are-corrupted
Commit: 06046bf3acf2cd0f1b0d217e34f120b98dc6e9b9
Parents: e43a0fa
Author: Robert Newson <rnewson@apache.org>
Authored: Fri Oct 7 09:50:02 2011 +0100
Committer: Robert Newson <rnewson@apache.org>
Committed: Fri Oct 7 09:50:02 2011 +0100

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


http://git-wip-us.apache.org/repos/asf/couchdb/blob/06046bf3/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