Repository navigation
fix(javascript): avoid argument limits when expanding escaped receivers - #1539
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
12 of 19 tasks
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.
A valid 1.49 MB JavaScript source can return an object with enough properties to exceed V8's function-argument limit when an escaped receiver expands its references. The compiled CLI exits 1 and stdio MCP returns
execution_failurewithRangeError: Maximum call stack size exceeded.Append expanded references individually, preserving their order and the existing binding/path cache. Public CLI/MCP regressions cover both 160,000-element object and array returns, retain uncertainty for a reference at the end, preserve an unrelated literal, and compare complete Evidence identities. No reference quota or result truncation is introduced.
The adjacent mutation suite also contained an inherited two-second elapsed-time assertion that failed at 2,093.89 ms on the constrained host. Remove that machine-load assertion while keeping the complete 2,000-write semantic case. Controlled performance measurements remain separate from deterministic correctness checks.
Closes #1538. Related to #1065.
Validation:
npm run test:focused -- tests/acceptance/applications/javascriptReturnedReferences.test.ts— 2 public CLI/stdio MCP workflows passed.npm run test:local -- src/domain/javascript/javascriptSemanticAnalysis.member_mutations.test.ts src/domain/javascript/javascriptSemanticMutationInitializers.test.ts src/domain/javascript/javascriptSemanticAnalysis.member_depth.test.ts— 172 tests passed.npm run check:fast— strict typecheck and lint passed.46c9cba0control byte-for-byte for 18 adjacent binding, scope, path, callable, iterator and mutation fixtures.No real Hopper/Ghidra verification was performed for this provider-neutral JavaScript change. This does not establish a fix for the private exit-134 report in #1387 or all remaining #1462 responsiveness work.