esprima
esprima copied to clipboard
should not allow to create class in single-statements (IfStatements)
Steps to reproduce
esprima.parse('if(1)class A{}')
Expected output
Should throw an error
Actual output
Outputs an AST tree