(cherry picked from commit 6be083187f49e444de1bb116bb5930b20125190b)
This commit is contained in:
Brian Smith 2023-04-08 03:27:08 -05:00 • committed by roytam1
commit a8ab41b4c6
21 changed files with 238 additions and 46 deletions

View file

@ -424,7 +424,8 @@ class NameResolver
MOZ_ASSERT(!cur->as<UnaryNode>().kid()->as<NameNode>().initializer());
break;
case PNK_NEWTARGET: {
case PNK_NEWTARGET:
case PNK_IMPORT_META: {
MOZ_ASSERT(cur->as<BinaryNode>().left()->isKind(PNK_POSHOLDER));
MOZ_ASSERT(cur->as<BinaryNode>().right()->isKind(PNK_POSHOLDER));
break;
@ -834,6 +835,14 @@ class NameResolver
break;
}
case PNK_CALL_IMPORT: {
BinaryNode* node = &cur->as<BinaryNode>();
MOZ_ASSERT(cur->isArity(PN_BINARY));
if (!resolve(node->right(), prefix))
return false;
break;
}
case PNK_DOT: {
// Super prop nodes do not have a meaningful LHS
PropertyAccess* prop = &cur->as<PropertyAccess>();