Skip to content

Conversation

@rbuckton
Copy link
Contributor

This performs a more in-depth check of an expression that could potentially introduce an ASI conflict after transformation by walking into the left-hand sides of CallExpression, TaggedTemplateExpression, BinaryExpression, ConditionalExpression, PostfixUnaryExpression, PropertyAccessExpression, and ElementAccessExpression. This also does the same for NonNullExpression, AsExpression, and SatisfiesExpression in the event someone is using the emitter to manually print a TS to TS transformation.

Fixes #59237
Fixes #60296

@typescript-bot typescript-bot added Author: Team For Milestone Bug PRs that fix a bug with a specific milestone labels Oct 21, 2024
@rbuckton rbuckton changed the title More rigorous ASI prevention when emitting return More rigorous ASI prevention when emitting return/yield Oct 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Author: Team For Milestone Bug PRs that fix a bug with a specific milestone

4 participants