Repository navigation
Commit 0c29294
committed
fix(compiler): structural shape merge and compound zero-delay recognition
mergeShapes used reference equality (===) for returned-array and
returned-object shapes. Each returnShape call allocates a fresh wrapper,
so two branches returning the same repacked tuple always failed the
check and dropped setter provenance. Add shapesEqual that structurally
compares kind, element count + identity, and property map entries.
zeroDelayPromise only matched Identifier and direct Promise.resolve/
reject calls. Compound forms—SequenceExpression, ConditionalExpression,
LogicalExpression, and nested AwaitExpression—fell through as real
yields even though they settle before the next paint. Extend
zeroDelayPromise to recurse through those forms, checking each leaf
with nonPromise || zeroDelayPromise.1 parent bda3634 commit 0c29294
2 files changed
Lines changed: 36 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
182 | 198 | | |
183 | 199 | | |
184 | 200 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2739 | 2739 | | |
2740 | 2740 | | |
2741 | 2741 | | |
| 2742 | + | |
| 2743 | + | |
| 2744 | + | |
| 2745 | + | |
| 2746 | + | |
| 2747 | + | |
| 2748 | + | |
| 2749 | + | |
| 2750 | + | |
| 2751 | + | |
| 2752 | + | |
| 2753 | + | |
| 2754 | + | |
| 2755 | + | |
| 2756 | + | |
| 2757 | + | |
| 2758 | + | |
| 2759 | + | |
| 2760 | + | |
2742 | 2761 | | |
2743 | 2762 | | |
2744 | | - | |
| 2763 | + | |
2745 | 2764 | | |
2746 | 2765 | | |
2747 | 2766 | | |
| |||
0 commit comments