Remove Parser::reportBadReturn

Report simpler errors that don't use the offset of a node as location.
This commit is contained in:
wolfbeast 2019-04-06 06:54:09 +02:00 • committed by Roy Tam
commit f1f8d377a9
6 changed files with 11 additions and 30 deletions

View file

@ -1445,8 +1445,6 @@ class Parser final : private JS::AutoGCRooter, public StrictModeGetter
static Node null() { return ParseHandler::null(); }
bool reportBadReturn(Node pn, ParseReportKind kind, unsigned errnum, unsigned anonerrnum);
JSAtom* prefixAccessorName(PropertyType propType, HandleAtom propAtom);
TokenPos pos() const { return tokenStream.currentToken().pos; }