summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorJohn Christopher Anderson <jchris@apache.org>2010-02-18 21:36:49 +0000
committerJohn Christopher Anderson <jchris@apache.org>2010-02-18 21:36:49 +0000
commit82ff1a2b0a15dbe181221173f3013befab68f499 (patch)
tree4238ac92c0b0b0997ea0d84746d0e4347de7cabb /share
parentd1489df85dae92b8ce46ef38c38433d422c6e04c (diff)
add JSON to the sandbox for older spidermonkey without native JSON
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@911602 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share')
-rw-r--r--share/server/loop.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/share/server/loop.js b/share/server/loop.js
index 84e35dc5..800d4440 100644
--- a/share/server/loop.js
+++ b/share/server/loop.js
@@ -20,6 +20,7 @@ function init_sandbox() {
sandbox.sum = Views.sum;
sandbox.log = log;
sandbox.toJSON = Couch.toJSON;
+ sandbox.JSON = JSON;
sandbox.provides = Mime.provides;
sandbox.registerType = Mime.registerType;
sandbox.start = Render.start;