Closed Adjective-Object closed 2 years ago
I would expect this to error, as it contains an unterminated string template literal.
ast, parseErr := js.Parse(parse.NewInputString("`"), js.Options{})
When run via node, it fails to parse
$ node > eval('`') Uncaught SyntaxError: Unexpected end of input
This was replicated against github.com/tdewolff/parse/v2 v2.5.29
If you can point me in the right direction, I can take a stab at fixing this!
Thanks Max, and thanks for offering to fix it! I've actually already gone ahead and fixed it, including a better error message for unterminated string.
I would expect this to error, as it contains an unterminated string template literal.
When run via node, it fails to parse
This was replicated against github.com/tdewolff/parse/v2 v2.5.29
If you can point me in the right direction, I can take a stab at fixing this!