esfuzz icon indicating copy to clipboard operation
esfuzz copied to clipboard

ES6 fuzzing

Open RReverser opened this issue 9 years ago • 7 comments

Now that ES6 is standardized, it would be awesome to be able to test tools by fuzzing ES6 code.

RReverser avatar Jul 31 '15 07:07 RReverser

Isn't that the --es6 option?

vendethiel avatar Jul 31 '15 07:07 vendethiel

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).

RReverser avatar Jul 31 '15 08:07 RReverser

Fair enough, sorry :).

vendethiel avatar Jul 31 '15 08:07 vendethiel

Yeah, sorry for not being precise enough in the first place :)

RReverser avatar Jul 31 '15 08:07 RReverser

Moreover - I might be wrong, but from code looks like option is just ignored at the moment.

RReverser avatar Jul 31 '15 08:07 RReverser

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.

michaelficarra avatar Jul 31 '15 12:07 michaelficarra

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).

RReverser avatar Jul 31 '15 19:07 RReverser