Closed lahma closed 4 years ago
I think the problem is here:
This code path doesn't check for the popped marker
and use its lineStart
as lastLineStart
for startNode
call like the code below it does:
I see that tests are explicitly checked not to contain windows line feeds so I'm unsure how to create a PR for this.
Created PR #2033
ping @ariya 🙂
There already exist issues and PR"s created years back that he haven't responded too yet. Expect him to be a slow replier.
And it's all fine, I understand that when it's free work one can choose his priorities. I just have some wishful thinking to verify the approach to get that on .NET version's side where we actually throw an error when we encounter invalid index values.
When parsing a multi-line string literal that has windows line feeds (\r\n) a negative column number is produced.
Steps to reproduce
Expected output
Actual output
Relevant references
I see there's been such problem before too: https://github.com/jquery/esprima/issues/1844