esprima icon indicating copy to clipboard operation
esprima copied to clipboard

should not allow to create class in single-statements (IfStatements)

Open ghost opened this issue 7 years ago • 0 comments

Steps to reproduce

esprima.parse('if(1)class A{}')

Expected output

Should throw an error

Actual output

Outputs an AST tree

ghost avatar Oct 24 '17 01:10 ghost