Revision: 4256 Author: felix8a Date: Tue Aug 24 13:25:41 2010 Log: fix es53.js JSON.parse for IE8 http://codereview.appspot.com/1973047
JSON.parse does endsWith__(s) instead of endsWith__.test(s). this was fixed in cajita.js http://codereview.appspot.com/987045 this change fixes it in es53.js too. [email protected] http://code.google.com/p/google-caja/source/detail?r=4256 Modified: /trunk/src/com/google/caja/es53.js ======================================= --- /trunk/src/com/google/caja/es53.js Fri Aug 20 15:47:36 2010 +++ /trunk/src/com/google/caja/es53.js Tue Aug 24 13:25:41 2010 @@ -971,7 +971,7 @@ json_sans_eval.checkSyntax(text, function (key) { return key !== 'valueOf' && key !== 'toString' && - !endsWith__(key); + !endsWith__.test(key); }), reviver); }), stringify: markFunc(function (obj, opt_replacer, opt_space) {
