Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Tolerate unclosed block comment #1041
Comments
There is no need to check for EOF here because it is implied when the previous while loop terminates. Refs jquery#1041
Consider the following test code (parsing in tolerant mode):
The current master branch will thrown an exception due to the error
Line 1: Unexpected token ILLEGAL.If this feature is implemented, it will return an AST because the unclosed block comment is tolerated. The error will be still listed in the
errorsarray.(Migrated from https://code.google.com/p/esprima/issues/detail?id=582, as reported by @mrennie)