Adding "strict" causes locations to be off by the number of newlines after the "strict" #38

Closed
rikarends opened this Issue Mar 25, 2013 · 1 comment

Comments

Projects
None yet
2 participants

this seems to be caused by the logic that re-reads tokens after strict for pedantic tests.

function setStrict(strct) {
strict = strct;
// not re-reading the tokens for pedantic tests fixes this problem
// tokPos = lastEnd;
// skipSpace();
// readToken();
}

Owner

marijnh commented Mar 25, 2013

Ah, this was broken by 0632b36 . Thanks for reporting. Fixed in attached patch.

@marijnh marijnh closed this Mar 25, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment