Parsing HTML-like comments after multiline comment #1828

Open
tdewolff opened this Issue Apr 29, 2017 · 0 comments

Comments

Projects
None yet
2 participants
@tdewolff

tdewolff commented Apr 29, 2017

Using http://esprima.org/demo/validate.html I found that Esprima doesn't follow the ECMAScript spec related to HTML-like comments: https://www.ecma-international.org/ecma-262/6.0/#sec-html-like-comments.

 
ident /* multiline
comment */ -->

outputs Error: Line 3: Unexpected token >, which is incorrect. It should parse a MultiLineComment as per the spec link above.

@ariya ariya added the defect label May 2, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment