| Index: src/preparser.h
|
| diff --git a/src/preparser.h b/src/preparser.h
|
| index b3f67c9a698a17920f67fd0c0d216ef28ac0bc22..27c988821bb9d3eaf62d9004e3d226505832664a 100644
|
| --- a/src/preparser.h
|
| +++ b/src/preparser.h
|
| @@ -193,13 +193,21 @@ class ParserBase : public Traits {
|
| }
|
|
|
| // Report syntax errors.
|
| + // WTF: changing the signature like this makes it pass
|
| + //void ReportMessage(const char* message, const Vector<const char*>& args) {
|
| void ReportMessage(const char* message, Vector<const char*> args) {
|
| + fprintf(stderr, "ParserBase::ReportMessage %s, args len %d\n", message, args.length());
|
| + // WTF: adding this line makes it pass
|
| + // fprintf(stderr, "args is at %p\n", reinterpret_cast<void*>(&args));
|
| Scanner::Location source_location = scanner()->location();
|
| Traits::ReportMessageAt(source_location, message, args);
|
| + fprintf(stderr, "ParserBase::ReportMessage returns\n");
|
| }
|
|
|
| void ReportMessageAt(Scanner::Location location, const char* message) {
|
| + fprintf(stderr, "ParserBase::ReportMessageAt\n");
|
| Traits::ReportMessageAt(location, message, Vector<const char*>::empty());
|
| + fprintf(stderr, "ParserBase::ReportMessageAt returns\n");
|
| }
|
|
|
| void ReportUnexpectedToken(Token::Value token);
|
|
|