esfuzz
esfuzz copied to clipboard
ES6 fuzzing
Now that ES6 is standardized, it would be awesome to be able to test tools by fuzzing ES6 code.
Isn't that the --es6
option?
It is, but repo was last updated a year ago, and a lot has changes since then both in ES spec and AST representations (we cleaned up and defined a lot of stuff in ESTree couple of months ago which fuzzer doesn't cover at the moment).
Fair enough, sorry :).
Yeah, sorry for not being precise enough in the first place :)
Moreover - I might be wrong, but from code looks like option is just ignored at the moment.
Yeah, I think it's ignored right now. PRs welcome of course, but I would strongly prefer a spec driven implementation over the current hand written one so that it is easy to track spec updates in the future. Relatedly, I will be releasing the Shift fuzzer within the next few days.
Definitely, a spec driven would be awesome. We even have estree-formal
package that could be theoretically used for that (although syntactic generation like various types of number literals, valid regular expressions etc. are not covered by it obviously).