import from UXP: Issue #2173 - Follow-up: Use common ancestor of PNK_(OPT)DOT in ASTSerializer::expression (e31a058c)

This commit is contained in:
2023-05-01 07:08:35 +08:00
parent a8b11959d0
commit b4697c603c
+1 -1
View File
@@ -3163,7 +3163,7 @@ ASTSerializer::expression(ParseNode* pn, MutableHandleValue dst)
case PNK_OPTDOT:
case PNK_DOT:
{
PropertyAccess* prop = &pn->as<PropertyAccess>();
PropertyAccessBase* prop = &pn->as<PropertyAccessBase>();
MOZ_ASSERT(prop->pn_pos.encloses(prop->expression().pn_pos));
RootedValue expr(cx);