Repository navigation
fix(javascript): scan direct returns without recursive stack growth - #1368
Merged
N0zoM1z0 merged 3 commits intoOct 10, 2026
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. |
5 of 16 tasks
Owner
|
That deep-return failure is a good one to pin down, @rudycelekli. Switching to an explicit node stack lets REA walk long member chains without consuming the JavaScript call stack, while preserving nested function and class boundaries. Thanks for keeping the 20,000-property regression and public CLI/MCP coverage. |
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.
Valid generated JavaScript with a deep member expression inside a function causes application analysis to fail with
RangeError: Maximum call stack size exceeded. Scan direct returns with an explicit stack, preserving source order, nested function/class boundaries, and exclusion of return arguments. The implementation reuses the shared AST child enumeration and adds no depth cap or evidence truncation.Preserves the contributor's implementation and regression, integrates main at
81cdafc132c7ba3bd6e12b1169f9e3687025d07b, and bounds the regression child heap at 768 MiB while retaining Node's default stack.Validation:
npm run compile -- --singleThreadedandnpm run typecheck -- --singleThreadedserially, then the exact focused Vitest files andnpm run lint, under the local two-CPU/process-family memory budget. Full CI must pass on the final published head before merge.Refs #1065. Prepared with AI assistance.