Repository navigation
test(javascript): verify escaped receivers through CLI and MCP - #1526
Merged
Merged
Conversation
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
This was referenced Oct 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The escaped-receiver regression added by #1517 fails on the prescribed two-core maintenance host because its fixed 2,000 ms assertion also measures concurrent suite load. Keep its semantic regression and add actual CLI/MCP coverage for equivalent returned references without coupling correctness to host speed. Refs #1495 and #1065.
Problem and expected behavior
On merged main
46c9cba0, the focused suite observed 2,332.3 ms for the new timing assertion: 260 tests passed and that one assertion failed. An isolated compiled analysis of the same 2,000-method shape took 1,159.3 ms. Correctness tests should verify the returned-reference uncertainty and binding/path boundaries; explicit performance runs should report their conditions and timings.Change and scope
Remove only the newly added wall-clock assertion and rename that case around its semantic outcome. Extend the existing compiled CLI/stdio-MCP return-shape workflow with a wide receiver, identical identifier names in distinct lexical scopes, and distinct paths on one parent binding. Both affected paths remain unknown, while an untouched sibling stays literal. Production analysis code is unchanged; #1517 retains credit for the performance fix.
Contract and boundary impact
Evidence and regression coverage
a0e5e9db. Actual retained views, close, expired references, ping and unchanged source were checked.Validation performed
npm run test:focused -- tests/acceptance/applications/javascriptReturnedReferences.test.ts tests/acceptance/applications/javascriptIterationAliases.test.ts src/domain/javascript/javascriptSemanticAnalysis.member_mutations.test.ts src/domain/javascript/javascriptSemanticAnalysis.reference_lifetimes.test.ts— 261 passed across four files, including actual compiled CLI/stdio-MCP workflows.npm run check:fast— strict typecheck and lint passed using the installed compiler in serial mode within the resource guard.git diff --checkand staged format/lint hooks — passed.Compatibility, safety, and release
Review checklist