bestiejs / json3

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

Add a body to for() loops to fix Google closure warnings #83

Closed ghost1542 closed 7 years ago

ghost1542 commented 9 years ago

This fixes the JSC_SUSPICIOUS_SEMICOLON warning when using Google closure on the file.

WARNING - If this if/for/while really shouldnt have a body, use {}

james-simpson-ST commented 8 years ago

I've been looking at using json3 and was running this through closure and noticed these warnings. Do you know why this commit broke the Travic CI tests? If so is there any chance that these will be fixed and resubmitted soon?