When I parsed undefined, the error was
JSONError: Cannot read property 'length' of undefined
at module.exports ((...)node_modules/parse-json/index.js:26:19)
For NaN
JSONError: txt.slice is not a function
It would be more friendly error if it just says something like don't give me undefined/NaN! (in more formal way, of course)
I don't know if this has mentioned before, but at least I could not find related issues.
When I parsed
undefined, the error wasFor
NaNIt would be more friendly error if it just says something like
don't give me undefined/NaN!(in more formal way, of course)I don't know if this has mentioned before, but at least I could not find related issues.