Open sanex3339 opened 4 years ago
Hi!
Good points!
FYI: This package is mostly a wrapper around shift-fuzzer.
valid strings and regexps
Aren’t the generated strings and regexps valid? Except this issue: https://github.com/shapesecurity/shift-fuzzer-js/issues/14
I dont remember the exact regexps, but when i tried this package, the espree
parse
was failed on the most of the generated regexps
It could also mean that the regexps are valid but espree can’t parse them
espree.parse()
accept an option ecmaVersion
- its defaults to 5.
maybe the generated regexps are valid, but not supported in ES5?
This package is generating very random code that can be very synthetic. It will be nice to have an option that will produce more real-world js code.
For example:
use strict
in the middle of code, only common patterns to organize the codeI need this for fuzz testing of my package, that is working with the AST-tree, but currently, most of the code that is generated by
eslump
just break my package at theparse
(espree
)