mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-10 02:08:38 +09:00
Fix incorrect assertions in js/src/builtin/
Prevents GCC 7 build warning spam.
This commit is contained in:
parent
09bb0bc482
commit
c5757236c9
2 changed files with 2 additions and 2 deletions
|
|
@ -1159,7 +1159,7 @@ bool
|
|||
ModuleBuilder::processExport(frontend::ParseNode* pn)
|
||||
{
|
||||
MOZ_ASSERT(pn->isKind(PNK_EXPORT) || pn->isKind(PNK_EXPORT_DEFAULT));
|
||||
MOZ_ASSERT(pn->getArity() == pn->isKind(PNK_EXPORT) ? PN_UNARY : PN_BINARY);
|
||||
MOZ_ASSERT(pn->getArity() == (pn->isKind(PNK_EXPORT) ? PN_UNARY : PN_BINARY));
|
||||
|
||||
bool isDefault = pn->getKind() == PNK_EXPORT_DEFAULT;
|
||||
ParseNode* kid = isDefault ? pn->pn_left : pn->pn_kid;
|
||||
|
|
|
|||
|
|
@ -2140,7 +2140,7 @@ ASTSerializer::exportDeclaration(ParseNode* pn, MutableHandleValue dst)
|
|||
MOZ_ASSERT(pn->isKind(PNK_EXPORT) ||
|
||||
pn->isKind(PNK_EXPORT_FROM) ||
|
||||
pn->isKind(PNK_EXPORT_DEFAULT));
|
||||
MOZ_ASSERT(pn->getArity() == pn->isKind(PNK_EXPORT) ? PN_UNARY : PN_BINARY);
|
||||
MOZ_ASSERT(pn->getArity() == (pn->isKind(PNK_EXPORT) ? PN_UNARY : PN_BINARY));
|
||||
MOZ_ASSERT_IF(pn->isKind(PNK_EXPORT_FROM), pn->pn_right->isKind(PNK_STRING));
|
||||
|
||||
RootedValue decl(cx, NullValue());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue