Issue #2173 - Add accessors to NullaryNode and change LoopControlStatement arity to PN_LOOP

Based-on: m-c 1479659/6
This commit is contained in:
Martok 2023-04-01 01:08:40 +02:00 • committed by roytam1
commit a49f4d0483
10 changed files with 166 additions and 68 deletions

View file

@ -598,7 +598,6 @@ static inline PropertyName*
LoopControlMaybeLabel(ParseNode* pn)
{
MOZ_ASSERT(pn->isKind(PNK_BREAK) || pn->isKind(PNK_CONTINUE));
MOZ_ASSERT(pn->isArity(PN_NULLARY));
return pn->as<LoopControlStatement>().label();
}