Make sure we do the malformed JSON check for all both JSON.parse and new Function...
authorjeresig <jeresig@gmail.com>
Mon, 11 Jan 2010 21:43:21 +0000 (16:43 -0500)
committerjeresig <jeresig@gmail.com>
Mon, 11 Jan 2010 21:43:21 +0000 (16:43 -0500)
commit44e6beb10304789044de2c5a58f5bb82e8321636
tree7872a9fbd9dcb09e1c254aaecfead3bbbe4e1872
parent23d600c66d8e1f7298dcb46eedba862279cd251d
Make sure we do the malformed JSON check for all both JSON.parse and new Function (this helps to create uniformity between browser implementations of JSON.parse - like where Chrome allows some malformed strings. Thanks to DBJDBJ for the heads-up.
src/ajax.js