diff options
author | John Christopher Anderson <jchris@apache.org> | 2010-07-23 05:44:51 +0000 |
---|---|---|
committer | John Christopher Anderson <jchris@apache.org> | 2010-07-23 05:44:51 +0000 |
commit | 7ab3da4635840f3af22362f00594148c87ce2d52 (patch) | |
tree | f4ba8e448c1d5cfb5942543cc41d6a9a68e6e04d /share/server | |
parent | 9c9a2c59d3e88cba80ee771aef52a064d76a629c (diff) |
update json2.js to latest version
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@966971 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share/server')
-rw-r--r-- | share/server/json2.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/share/server/json2.js b/share/server/json2.js index 39d8f370..a1a3b170 100644 --- a/share/server/json2.js +++ b/share/server/json2.js @@ -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) { |