Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected token ILLEGAL #1964

jpstotz opened this Issue Feb 7, 2019 · 0 comments


None yet
1 participant
Copy link

jpstotz commented Feb 7, 2019

Esprima 4.0.1 fails to parse the attached JS file. From my understanding it looks like Esprima fails on the following statement which contains a line break inside a string:

e.push('<div class="div-contain"><div class="divider"></div></div
><dt>' + l + "</dt>" + d.createA(m, "opt " + g, h))

The error message is Line 11: Unexpected token ILLEGAL

esprima.parse(<code from bootstrap-select.min.js.txt>, { tolerant: true });


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.