Open RichardHoOoOo opened 3 years ago
Take the following code as an example
source = "const obj = { async* generator() {}};" esprima.parseScript(source, { tolerant: true })) code = escodegen.generate(ast); console.log(code);
The output is:
const obj = { async, *generator() { } };
Take the following code as an example
The output is: