Skip to content

Commit

Permalink
Fix test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
TrickyPi committed Mar 20, 2024
1 parent a31f286 commit 4f938e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/ast/nodes/ImportExpression.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export default class ImportExpression extends NodeBase {
return EMPTY_ARRAY;
}

// Case 1: const { foo } = await import('bar')
// Case 1: const { foo } / module = await import('bar')
if (parent2 instanceof VariableDeclarator) {
const declaration = parent2.id;
if (declaration instanceof Identifier) {
Expand All @@ -92,7 +92,6 @@ export default class ImportExpression extends NodeBase {
if (declaration instanceof ObjectPattern) {
return getDeterministicObjectDestructure(declaration);
}
return undefined;
}

// Case 2: (await import('bar')).foo
Expand Down
2 changes: 1 addition & 1 deletion src/ast/nodes/MemberExpression.ts
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ export default class MemberExpression
includeChildrenRecursively: IncludeChildren
): void {
if (!this.deoptimized) this.applyDeoptimizations();
this.includeProperties([this.propertyKey || UnknownKey], context, includeChildrenRecursively);
this.includeProperties([this.getPropertyKey()], context, includeChildrenRecursively);
}

includeAsAssignmentTarget(
Expand Down

0 comments on commit 4f938e3

Please sign in to comment.