Skip to content

Commit 29178bf

Browse files
cursoragentskoshx
andcommitted
chore: add changeset for walkAst stack overflow fix
Co-authored-by: Skosh <skoshx@users.noreply.github.com>
1 parent d556202 commit 29178bf

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"oxlint-plugin-react-doctor": patch
3+
---
4+
5+
fix: prevent stack overflow in AST traversal on deeply nested code structures
6+
7+
Fixes issue #1438 where scanning files with deeply nested async functions and try/catch blocks would crash with "RangeError: Maximum call stack size exceeded". Converted `walkAst()` from recursive to iterative traversal using an explicit stack, eliminating unbounded recursion while preserving identical semantics. Also added memoization to `subtreeCanThrowSynchronously` to cache results and avoid redundant analysis.

0 commit comments

Comments
 (0)