ariya/esprima — pull request #1 by Constellation (2011-12-04 07:27:03+00:00)
Title: fix EOF check in parser

Hello,

I fixed when lookahead check is used, comment is skipped, and "index < length" check is not works.

example:

esprima.parse('{ print("HELLO"); ');

doesn't stop. because last whitespace ' ' prevents making "index < length" true.

so using index < length check in only scanner phase and using matchEOF in parser phase.

Thanks.