Bug 922432 - OdinMonkey: improve error reporting (r=sstangl)

--HG--
extra : rebase_source : 73e87b5ef47215bd84df38de6f3ce68ba9686e65
This commit is contained in:
Luke Wagner 2013-10-21 17:07:06 -05:00
parent 7039ba4996
commit 867ebc38b0

View File

@ -1324,7 +1324,7 @@ class MOZ_STACK_CLASS ModuleCompiler
} }
bool fail(ParseNode *pn, const char *str) { bool fail(ParseNode *pn, const char *str) {
return failOffset(pn ? pn->pn_pos.begin : parser_.tokenStream.currentToken().pos.end, str); return failOffset(pn ? pn->pn_pos.begin : parser_.tokenStream.peekTokenPos().begin, str);
} }
bool failfVA(ParseNode *pn, const char *fmt, va_list ap) { bool failfVA(ParseNode *pn, const char *fmt, va_list ap) {