indutny/candor — Issue #3: Parser bugs near end of stream
Author: creationix
Created: 2012-03-07 12:55:26+00:00
State: open

While testing the new "return" <-> "return nil" feature, I found a couple parser bugs.

Both `"return\n// comment"` and `"return nill\n// comment\n"` crash with the failed assertion:

test-parser: src/parser.cc:18: candor::internal::AstNode* candor::internal::Parser::Execute(): Assertion `Peek()->is(kEnd)' failed.