Skip to content

Generate more real-world js code #13

@sanex3339

Description

@sanex3339

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:

  • the variable should be declared before usage
  • valid strings and regexps
  • valid code structures: no use strict in the middle of code, only common patterns to organize the code

I 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 the parse (espree)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions