Skip to content

fix(javascript): preserve abrupt destructuring boundaries - #13433

Merged
morluto merged 3 commits into
mainfrom
test/campaign-javascript-destructuring-contracts
Nov 22, 2026
Merged

morluto merged 3 commits into
mainfrom
test/campaign-javascript-destructuring-contracts

Conversation

@morluto

@morluto morluto commented Nov 22, 2026

Copy link
Copy Markdown
Owner

Changes

The semantic graph could resolve object destructuring bindings after a nested receiver was provably null. The failures involved a previously captured null alias, an active default that resolves to null, or a side-effect-free computed property key. The analyzer now leaves the unreachable binding and its dependency uncertain while keeping the preceding binding. The tests cover aliases that change after the original slot captured its value.

The compiled CLI test checks every original graph dependency and traces only the two outcomes that exercise the transport contract. The positive trace follows the source of the earlier binding. The later binding's trace reports ambiguous coverage and retains the authenticated source links and exact seed. This cuts 34 repeated CLI trace requests. Two redundant service tests are covered by stronger existing before/after checks.

Verification

  • 427 focused checks across five suites, including compiled producer and trace CLI and retained MCP Evidence.
  • The original code resolved the later bindings and reported literal values. Temporary controls independently restored the alias and computed-key failures and made the CLI follow a candidate edge.
  • Three paired runs on the same compiled runtime put the CLI test median at 3.93 seconds before and 1.88 seconds after.
  • Static, architecture and format checks passed. JavaScript fixtures were analyzed without executing them.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-22T14:16:54.091966Z e75ca75 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@greptile-apps

greptile-apps Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no new blocking issue was found.

Summary

The analyzer now checks compound expressions when deciding whether a nested destructuring receiver is null.

  • JavaScript destructuring keeps earlier bindings and leaves unreachable ones uncertain.

Reviews (2) · Last reviewed commit: "fix(javascript): evaluate computed nulli..." · Reviewed by Greptile

@morluto
morluto enabled auto-merge (squash) November 22, 2026 14:17
@morluto
morluto merged commit 365bbd9 into main Nov 22, 2026
40 checks passed
@morluto
morluto deleted the test/campaign-javascript-destructuring-contracts branch November 22, 2026 14:21
@morluto morluto added bug Something isn't working area: native Native analysis and decompilation, including Ghidra, IDA, and Hopper analysis behavior labels Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: native Native analysis and decompilation, including Ghidra, IDA, and Hopper analysis behavior bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant