Repository navigation
Commit cddcc79
committed
fix(compiler): peel TSSatisfiesExpression and TSInstantiationExpression in canCarryDirectSignalHandle
The peel list in canCarryDirectSignalHandle was missing TSSatisfiesExpression and
TSInstantiationExpression. When the syntacticOnly path was active, a $-named
handle inside a logical/conditional expression wrapped in 'satisfies' (e.g.
`(a ?? b$) satisfies T`) would not be recognized as a signal handle, because
the function never unwrapped the satisfies node to reach the LogicalExpression
branch. The isDirectSignalHandleExpression fallback does unwrap satisfies but
only accepts leaf identifiers/members/calls, not compound expressions.
Adding both types to the existing peel list aligns it with the unwrapExpression
helper in native-attribute-reads.js.1 parent b7f7f4f commit cddcc79
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
615 | 615 | | |
616 | 616 | | |
617 | 617 | | |
| 618 | + | |
| 619 | + | |
618 | 620 | | |
619 | 621 | | |
620 | 622 | | |
| |||
0 commit comments