Repository navigation
Commit 5f81352
committed
fix(compiler): fix strong-effect shape merging, helper target detection, and global listener recognition
- mergeShapes: compare returned-array and returned-object shapes structurally
instead of by identity, so multi-path custom hooks that return the same
bindings in different wrapper objects preserve setter provenance
- platformTarget: follow frameArgument for helper parameters and handle
destructured properties (path.length > 0), so on(window, type, fn) helpers
and const { body } = document bindings are recognized as platform targets
- acquire/scan: recognize bare addEventListener and removeEventListener as
global window methods (matching setInterval/clearInterval pattern), so
unqualified global listener calls are tracked for leak detection1 parent 2595220 commit 5f81352
2 files changed
Lines changed: 50 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
507 | 507 | | |
508 | 508 | | |
509 | 509 | | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
510 | 517 | | |
511 | 518 | | |
512 | 519 | | |
| |||
638 | 645 | | |
639 | 646 | | |
640 | 647 | | |
| 648 | + | |
| 649 | + | |
641 | 650 | | |
642 | | - | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
643 | 660 | | |
644 | 661 | | |
645 | 662 | | |
| |||
675 | 692 | | |
676 | 693 | | |
677 | 694 | | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
678 | 707 | | |
679 | 708 | | |
680 | 709 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2727 | 2727 | | |
2728 | 2728 | | |
2729 | 2729 | | |
| 2730 | + | |
| 2731 | + | |
| 2732 | + | |
| 2733 | + | |
| 2734 | + | |
| 2735 | + | |
| 2736 | + | |
| 2737 | + | |
| 2738 | + | |
| 2739 | + | |
| 2740 | + | |
| 2741 | + | |
| 2742 | + | |
| 2743 | + | |
| 2744 | + | |
| 2745 | + | |
| 2746 | + | |
| 2747 | + | |
| 2748 | + | |
2730 | 2749 | | |
2731 | 2750 | | |
2732 | | - | |
| 2751 | + | |
2733 | 2752 | | |
2734 | 2753 | | |
2735 | 2754 | | |
| |||
0 commit comments