d3x0r / JSON6

JSON for Humans (ES6)
Other
237 stars 15 forks source link

string_status is undefined #4

Closed jdalton closed 6 years ago

jdalton commented 6 years ago

When using JSON6 I get an error string_status is undefined. I'm bundling JSON6 into a project that uses strict mode "use strict".

If you add "use strict" to the top of lib/json6.js it would catch the undefined variable assignment to string_status.

jdalton commented 6 years ago

Same with var exponent_digit.

d3x0r commented 6 years ago

okay gimme a little bit I'll fix that.

d3x0r commented 6 years ago

Fixed, published and pushed. Added "use strict" in json6.js anyway. Cleaned up some bad ugly throws, and -Infinity handling.

jdalton commented 6 years ago

🤘 Thank you @d3x0r!