Author: jchris
Date: Fri Jul 23 05:44:51 2010
New Revision: 966971

URL: http://svn.apache.org/viewvc?rev=966971&view=rev
Log:
update json2.js to latest version

Modified:
    couchdb/trunk/share/server/json2.js
    couchdb/trunk/share/www/script/json2.js

Modified: couchdb/trunk/share/server/json2.js
URL: 
http://svn.apache.org/viewvc/couchdb/trunk/share/server/json2.js?rev=966971&r1=966970&r2=966971&view=diff
==============================================================================
--- couchdb/trunk/share/server/json2.js [utf-8] (original)
+++ couchdb/trunk/share/server/json2.js [utf-8] Fri Jul 23 05:44:51 2010
@@ -1,6 +1,6 @@
 /*
     http://www.JSON.org/json2.js
-    2009-09-29
+    2010-03-20
 
     Public Domain.
 
@@ -433,6 +433,7 @@ if (!this.JSON) {
 // Unicode characters with escape sequences. JavaScript handles many characters
 // incorrectly, either silently deleting them, or treating them as line 
endings.
 
+            text = String(text);
             cx.lastIndex = 0;
             if (cx.test(text)) {
                 text = text.replace(cx, function (a) {

Modified: couchdb/trunk/share/www/script/json2.js
URL: 
http://svn.apache.org/viewvc/couchdb/trunk/share/www/script/json2.js?rev=966971&r1=966970&r2=966971&view=diff
==============================================================================
--- couchdb/trunk/share/www/script/json2.js [utf-8] (original)
+++ couchdb/trunk/share/www/script/json2.js [utf-8] Fri Jul 23 05:44:51 2010
@@ -1,6 +1,6 @@
 /*
     http://www.JSON.org/json2.js
-    2009-09-29
+    2010-03-20
 
     Public Domain.
 
@@ -433,6 +433,7 @@ if (!this.JSON) {
 // Unicode characters with escape sequences. JavaScript handles many characters
 // incorrectly, either silently deleting them, or treating them as line 
endings.
 
+            text = String(text);
             cx.lastIndex = 0;
             if (cx.test(text)) {
                 text = text.replace(cx, function (a) {


Reply via email to