fix(javascript): retain guards after labelled breaks (#7841)

* fix(javascript): retain guards after labelled breaks

* fix(javascript): bound labelled exit inspection

* fix(javascript): preserve local break completion

* fix(javascript): avoid exits through unknown control flow

* fix(javascript): retain guards after bounded jump scan
This commit is contained in:
morluto authored and GitHub committed 2026-10-29 05:09:45 +08:00
1 parent 1e088c19ad
commit 4e663beeb8
6 files changed
+363 -67

No files matched your search

@@ -256,6 +256,7 @@ export function* collectElectronWrappedCallPathsSteps(
let remainingVisits = 1_000_000;
const prefixes = new ElectronCallPathBlockPrefixes(
() => --remainingVisits >= 0,
state.parentsByNode,
);
const resolver = new JavaScriptSymbolicBindings(state, program, identity);
const paths: ElectronCallPath[] = [];
@@ -1172,7 +1173,7 @@ export function* collectElectronWrappedCallPathsSteps(
for (const statement of node.body) {
walk(statement, env, next);
const fallthrough = sequentialFallthrough(
prefixes.statement(statement),
prefixes.statement(statement, node) ?? null,
env,
next,
);