summaryrefslogtreecommitdiff
path: root/share/server/main.js
diff options
context:
space:
mode:
authorChristopher Lenz <cmlenz@apache.org>2008-06-23 15:23:32 +0000
committerChristopher Lenz <cmlenz@apache.org>2008-06-23 15:23:32 +0000
commit3164ddedffaadf26837c9a0a9bf366048b230b54 (patch)
treef61d34fcf618f413812169418ca1b85024cc9113 /share/server/main.js
parent45c97d183c73e0058265f2de77416a2f215edd93 (diff)
Seal the document in Javascript view functions in 'deep' mode so that it's not possible to modify values in nested arrays and objects.
git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@670653 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share/server/main.js')
-rw-r--r--share/server/main.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/server/main.js b/share/server/main.js
index 9773cf6c..05615ccd 100644
--- a/share/server/main.js
+++ b/share/server/main.js
@@ -74,7 +74,7 @@ while (cmd = eval(readline())) {
// ]
//
var doc = cmd[1];
- seal(doc); // seal to prevent map functions from changing doc
+ seal(doc, true); // seal to prevent map functions from changing doc
var buf = [];
for (var i = 0; i < funs.length; i++) {
map_results = [];