diff options
-rw-r--r-- | couchjs/js/util.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/couchjs/js/util.js b/couchjs/js/util.js index a7449315..0b812fe1 100644 --- a/couchjs/js/util.js +++ b/couchjs/js/util.js @@ -91,9 +91,9 @@ var Couch = { } sandbox.require = require; } - var functionObject = evalcx("(" + source + ")", sandbox); + var functionObject = evalcx(source, sandbox); } else { - var functionObject = eval("(" + source + ")"); + var functionObject = eval(source); } } catch (err) { throw(["error", "compilation_error", err.toSource() + " (" + source + ")"]); |