From a33cf09319d0b174ec9c509c815da160b7091ab3 Mon Sep 17 00:00:00 2001 From: "Damien F. Katz" Date: Fri, 8 Aug 2008 17:46:48 +0000 Subject: COUCHDB-103 Fixed incompatibilty with new javascript (1.8) that no longer supports sealing document, making them immutable. The problem is arrays can no longer be sealed, and an error is generated when it is attempted. The fix here is to simply remove the document sealing, and map function placed in the same design document will have to be trustworthy that they don't modify the document (the same document is passed to multiple map functions). Non-trustworthy map functions can be placed in their own design documents, they will be run in isolation. git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@684023 13f79535-47bb-0310-9956-ffa450edef68 --- share/www/script/couch_tests.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'share/www') diff --git a/share/www/script/couch_tests.js b/share/www/script/couch_tests.js index 32a53909..539b9a12 100644 --- a/share/www/script/couch_tests.js +++ b/share/www/script/couch_tests.js @@ -1072,7 +1072,7 @@ var tests = { var doc = {integer: 1, string: "1", array: [1, 2, 3]}; T(db.save(doc).ok); - +/* // make sure that attempting to change the document throws an error var results = db.query(function(doc) { doc.integer = 2; @@ -1085,7 +1085,7 @@ var tests = { emit(null, doc); }); T(results.total_rows == 0); - +*/ // make sure that a view cannot invoke interpreter internals such as the // garbage collector var results = db.query(function(doc) { -- cgit v1.2.3