From 5b558c81ed9709fb286a6821e9ae6d6478012c2c Mon Sep 17 00:00:00 2001 From: Robert Newson Date: Thu, 6 Oct 2011 10:39:21 +0100 Subject: Remove SpiderMonkey 1.8.5 compatibility This commit reverts 1.8.5 compatibility including the corresponding couchjs paren hack as this leads to significant breakage in existing functions. --- share/server/util.js | 5 ----- 1 file changed, 5 deletions(-) (limited to 'share/server/util.js') 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) { -- cgit v1.2.3