google-code-export / esprima

Automatically exported from code.google.com/p/esprima
BSD 2-Clause "Simplified" License
1 stars 0 forks source link

String literal with escaped quotes cause Error #608

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
esprima.parse('"\""');

Will cause:
Error: Line 1: Unexpected token ILLEGAL

I created a branch of master with a test case, which indeed fails:
https://github.com/asystance/esprima/compare/test-escapedquote

I will create a pull request and link to this ticket.

Original issue reported on code.google.com by jverst...@gmail.com on 27 Oct 2014 at 12:16

GoogleCodeExporter commented 9 years ago
Invalid as per https://github.com/ariya/esprima/pull/291#issuecomment-60590626.

Original comment by mathias@qiwi.be on 27 Oct 2014 at 2:12

GoogleCodeExporter commented 9 years ago

Original comment by ariya.hi...@gmail.com on 2 Nov 2014 at 2:19