Skip to content

fix: wrap a block rotator only when its loop and leading initialisers are closed - #466

Merged
Sorte1 merged 1 commit into
mainfrom
fix/ox2-d4
Nov 20, 2026
Merged

Sorte1 merged 1 commit into
mainfrom
fix/ox2-d4

Conversation

@Sorte1

@Sorte1 Sorte1 commented Nov 20, 2026 •

Copy link
Copy Markdown
Owner

Fixes F1 from the round 6 review of #461 (review/r6-ox2d2.md).

block_rotator moved a block that ends in a rotator loop into (function () { ... })() without checking the loop. A return, a loop var or function read after the block, continue L/break L to an outer label, await/yield or super then changed meaning or broke the output, in both lanes. It now requires closed_loop on the loop, like called_plan and checksum_plan, and runs the same escape and lexical-use scan over the initialisers of the leading declarations.

New rows in obfuscator_sweep_rows.rs: 14 escaping shapes print like node in both lanes and are not wrapped, and a closed block rotator is still wrapped.

Gates:

… are closed

block_rotator now requires closed_loop on the rotator, as called_plan and
checksum_plan do, and refuses leading declarations whose initialisers hold
await, yield, super, return or labelled jumps. A return, a loop var or
function read after the block, a jump to an outer label, await/yield or
super no longer change meaning when the block is moved into a function.
@Sorte1
Sorte1 merged commit bb5ecd8 into main Nov 20, 2026
9 checks passed
@Sorte1
Sorte1 deleted the fix/ox2-d4 branch November 20, 2026 19:45

This branch was successfully deployed

1 active deployment
preview — da4e61c6 Deployed Nov 20, 2026 by Sorte1 via deploy #1358
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant