jquery / esprima

ECMAScript parsing infrastructure for multipurpose analysis
http://esprima.org
BSD 2-Clause "Simplified" License
7.04k stars 786 forks source link

Fix the Tree files in the tests #2077

Closed jogibear9988 closed 3 years ago

jogibear9988 commented 3 years ago

I've fixed a bug in esprima, but now some tests fail, cause the exported tree does not match.

Is there a way to newly write the tree files from the tests with the current AST?

jogibear9988 commented 3 years ago

i debuged the tests now, copied the correct AST via debuger, and inserted into file (but this is much work)

ariya commented 3 years ago

Hi @jogibear9988, simply delete the .json files and run the tests again. The expected new .json should be created automatically.