Files
bun.sh/test/regression/issue
Claude Bot 4d4ea8ca15 fix(stack): disable TCO for Node.js-compatible stack traces
Disable tail call optimization (TCO) by default to ensure all
intermediate stack frames are preserved in Error.prepareStackTrace
call site objects.

V8/Node.js doesn't implement proper tail calls, so the Node.js
ecosystem expects all stack frames to be present. Libraries like Nx,
node-depd, and others use Error.prepareStackTrace to analyze call
stacks and break when frames are eliminated by TCO.

This fixes compatibility with tools that rely on accurate stack
traces for:
- Detecting recursion patterns
- Finding the calling module
- Debugging and profiling

Users who need TCO can re-enable it with BUN_JSC_useTailCalls=1.

Fixes #25738

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-12 12:03:03 +00:00
..
2025-08-06 06:44:46 -07:00
2025-01-28 17:23:57 -08:00
2025-06-03 13:23:12 -07:00
2025-06-03 23:41:37 -07:00
2025-01-17 22:08:07 -08:00
2024-06-14 01:50:36 -07:00
2025-03-03 21:38:05 -08:00
2025-05-26 21:18:22 -07:00
2025-07-03 01:06:22 -07:00
2025-07-23 22:31:42 -07:00
2025-10-20 14:07:31 -07:00
2025-11-05 22:04:14 -08:00
2025-11-05 22:04:14 -08:00
2025-11-19 21:17:51 -08:00
2025-07-20 23:02:10 -07:00