esfuzz
esfuzz copied to clipboard
fuzzer for generative testing of ECMAScript parsers
Now that ES6 is standardized, it would be awesome to be able to test tools by fuzzing ES6 code.
I appears to me that the fuzzer is biased towards rather small ast's. Sometimes its nice to assure that the size is somehow "growing" (might be useful in quick check...
A shrinking function should take a node and produce a list of nodes that are potentially easier for a human to consume. A good strategy: generate the leaf, something around...
I don't know why it didn't hit me earlier that this is the job for a monad. This should be pretty simple, remove tons of duplication for nodes that don't...
For this, we can use [inh3/nPool](https://github.com/inh3/nPool).