Repository navigation
Commit a1c56e5
committed
fix(octane): harden lite-arm proof and nested-arm parentBlock identity
Three bugs in the hookless control-flow arm feature:
1. controlFlowArmIsLite returned false (skip) for ref/event attributes,
hiding render-time hook calls in the value expression. Now the value
is walked unless it is a direct function expression (callback body).
2. The bare-identifier-call gate only checked CallExpression with a plain
Identifier callee. Optional calls and TS-wrapped callees were missed.
Now checks OptionalCallExpression and unwraps TSAsExpression etc.
3. A nested @if/@switch inside a lite arm used the LiteBlockImpl stand-in
as parentBlock, which lacks disposed and currentRenderMode. Now
renderBranchSlot reads those fields from owningBlock(parentBlock).1 parent 079caed commit a1c56e5
2 files changed
Lines changed: 22 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32908 | 32908 | | |
32909 | 32909 | | |
32910 | 32910 | | |
32911 | | - | |
32912 | | - | |
| 32911 | + | |
| 32912 | + | |
32913 | 32913 | | |
32914 | 32914 | | |
32915 | | - | |
| 32915 | + | |
32916 | 32916 | | |
32917 | 32917 | | |
32918 | 32918 | | |
| |||
32921 | 32921 | | |
32922 | 32922 | | |
32923 | 32923 | | |
32924 | | - | |
| 32924 | + | |
| 32925 | + | |
| 32926 | + | |
| 32927 | + | |
| 32928 | + | |
| 32929 | + | |
| 32930 | + | |
| 32931 | + | |
| 32932 | + | |
32925 | 32933 | | |
32926 | 32934 | | |
32927 | 32935 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45305 | 45305 | | |
45306 | 45306 | | |
45307 | 45307 | | |
| 45308 | + | |
| 45309 | + | |
| 45310 | + | |
45308 | 45311 | | |
45309 | 45312 | | |
45310 | 45313 | | |
| |||
45365 | 45368 | | |
45366 | 45369 | | |
45367 | 45370 | | |
45368 | | - | |
| 45371 | + | |
45369 | 45372 | | |
45370 | 45373 | | |
45371 | 45374 | | |
45372 | 45375 | | |
45373 | 45376 | | |
45374 | 45377 | | |
45375 | 45378 | | |
45376 | | - | |
| 45379 | + | |
45377 | 45380 | | |
45378 | 45381 | | |
45379 | 45382 | | |
| |||
45393 | 45396 | | |
45394 | 45397 | | |
45395 | 45398 | | |
45396 | | - | |
| 45399 | + | |
45397 | 45400 | | |
45398 | 45401 | | |
45399 | 45402 | | |
| |||
45405 | 45408 | | |
45406 | 45409 | | |
45407 | 45410 | | |
45408 | | - | |
| 45411 | + | |
45409 | 45412 | | |
45410 | 45413 | | |
45411 | 45414 | | |
| |||
45631 | 45634 | | |
45632 | 45635 | | |
45633 | 45636 | | |
45634 | | - | |
| 45637 | + | |
45635 | 45638 | | |
45636 | 45639 | | |
45637 | 45640 | | |
| |||
45646 | 45649 | | |
45647 | 45650 | | |
45648 | 45651 | | |
45649 | | - | |
| 45652 | + | |
45650 | 45653 | | |
45651 | 45654 | | |
45652 | 45655 | | |
45653 | | - | |
| 45656 | + | |
45654 | 45657 | | |
45655 | 45658 | | |
45656 | 45659 | | |
| |||
0 commit comments