Repository navigation
Commit 813ceb3
committed
fix(compiler): unwrap callee in producer skip and trustedFactory
Parenthesized or TypeScript-wrapped callees (e.g. `(derived$)(...)` or
`derived$!(...)`) were not recognized by the producer skip in
`declaredUses` or by either `trustedFactory`, because both inspected
`node.callee` directly instead of peeling wrappers with
`unwrapExpression`. This caused method calls inside factory arguments
to be lowered through `__declared`, resolving the declaring cell
instead of the reader's.
Apply `unwrapExpression` to the callee in both `trustedFactory`
copies and in the second branch of the producer skip, matching the
unwrap the later method-call path already performs.1 parent babfb44 commit 813ceb3
1 file changed
Lines changed: 13 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
527 | 527 | | |
528 | 528 | | |
529 | 529 | | |
530 | | - | |
531 | | - | |
532 | | - | |
533 | | - | |
534 | | - | |
535 | | - | |
536 | | - | |
537 | | - | |
538 | | - | |
539 | | - | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
540 | 541 | | |
541 | 542 | | |
542 | 543 | | |
| |||
620 | 621 | | |
621 | 622 | | |
622 | 623 | | |
623 | | - | |
| 624 | + | |
624 | 625 | | |
625 | 626 | | |
626 | 627 | | |
| |||
792 | 793 | | |
793 | 794 | | |
794 | 795 | | |
795 | | - | |
| 796 | + | |
796 | 797 | | |
797 | 798 | | |
798 | 799 | | |
| |||
0 commit comments