What / Why
The parse method does not return a meaningful error
Error.captureStackTrace is not a function
JSONParseError index.js:58
parseJson index.js:105
When
- Whenever I try to parse bad JSON.
Where
How
Current Behavior
- Parsing throws
TypeError: xxx is not a function
Steps to Reproduce
const info = JSON.parse('Bad Json. {"a":0}');
Expected Behavior
- An error about the parsing problem.
What / Why
When
Where
How
Current Behavior
TypeError: xxx is not a functionSteps to Reproduce
Expected Behavior