Closed fengh16 closed 5 years ago
slimit
was written at a time when ES5 was the latest standard, which did not have backquotes (`
) as part of the syntax, as this was not introduced until ES6/ECMASript 2015 (Section 11.8.6), so unfortunately, what you want to do is not currently supported by this library.
If parsing ECMAScript 2015 is the only requirement, try esprima-python, which has support up to ECMAScript 2017.
Thank you!
The back quote("`") can't be parsed.
Example of input that caused error:
Error message: