bestiejs / json3

A JSON polyfill. No longer maintained.
https://bestiejs.github.io/json3
Other
1.02k stars 150 forks source link

JSON.parse is failing in IE 7 with production and development code #52

Closed Vinoth18 closed 10 years ago

Vinoth18 commented 10 years ago

I tired the JSON.parse ( simple example: JSON.parse('{"a":1}') ) in IE7 using the json3 production and development code. It is throwing an exception as "Exception occurred and not caught" but when i try the same using the branch code, it is working correctly.

Development Code: http://cdnjs.cloudflare.com/ajax/libs/json3/3.2.6/json3.js Production Code: http://cdnjs.cloudflare.com/ajax/libs/json3/3.2.6/json3.min.js

IE7 is throwing the error even when I tried with json3.2.5 also.

Please help.

ghost commented 10 years ago

I checked out v3.2.6 and ran the unit tests on IE 6, 7, and 8—both the development and production versions pass without throwing any exceptions. Would you mind including a complete test case, please?

Vinoth18 commented 10 years ago

Sorry, I don't have any test cases. I just created a simple html file with the following content and tried. But it happened in only one machine. I tried the same in another machine, it worked.