eslump
eslump copied to clipboard
Suggestion: use shift-validator to avoid early errors
I saw in the readme
Ability to generate code without any early errors.
The fact that shift-fuzzer doesn't do this already is a bug, but not one I'm likely to get around to fixing for a while yet. In the mean time, though, you can use shift-validator to confirm that the generated ASTs represent real programs. Its default
export tells you if an AST is valid. If you generate an invalid one, you can just re-roll.
Depending on the setup this might be slower than just letting the consumer choke the invalid programs, but it's an option to consider.