summaryrefslogtreecommitdiff
path: root/share/server
diff options
context:
space:
mode:
authorJohn Christopher Anderson <jchris@apache.org>2009-01-27 23:07:48 +0000
committerJohn Christopher Anderson <jchris@apache.org>2009-01-27 23:07:48 +0000
commit22e4e59ddcbf859e4cf2750498ecc4fc2b7e3b3d (patch)
tree5743bbe8194b2a1f5877f19873213eda7d8c341c /share/server
parentee4ba41be000abbf4d888d306c72b6e805fdc01b (diff)
add toJSON to the sandbox
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@738295 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share/server')
-rw-r--r--share/server/main.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/share/server/main.js b/share/server/main.js
index 286fd9c0..723bf655 100644
--- a/share/server/main.js
+++ b/share/server/main.js
@@ -207,6 +207,7 @@ try {
sandbox.emit = emit;
sandbox.sum = sum;
sandbox.log = log;
+ sandbox.toJSON = toJSON;
sandbox.respondWith = respondWith;
sandbox.registerType = registerType;
} catch (e) {}