Inline Parser::checkAssignmentToCall into its sole caller.

This commit is contained in:
wolfbeast 2019-04-06 10:55:02 +02:00 • committed by Roy Tam
commit 598c71feb0
2 changed files with 5 additions and 16 deletions

View file

@ -1432,8 +1432,6 @@ class Parser final : private JS::AutoGCRooter, public StrictModeGetter
bool checkDestructuringObject(Node objectPattern, mozilla::Maybe<DeclarationKind> maybeDecl);
bool checkDestructuringName(Node expr, mozilla::Maybe<DeclarationKind> maybeDecl);
bool checkAssignmentToCall(Node node, unsigned errnum);
Node newNumber(const Token& tok) {
return handler.newNumber(tok.number(), tok.decimalPoint(), tok.pos);
}