Files
bun.sh/test/regression/issue
Claude Bot 78327bf8d4 Fix Error.prepareStackTrace custom getter not being invoked
When Error.prepareStackTrace is defined with Object.defineProperty
using a custom getter, the getter was not being invoked when formatting
stack traces. This broke modules like error-callsites and elastic-apm-node.

Root cause: Bun was directly accessing cached values instead of checking
if the property had a custom accessor descriptor.

Fix: Check if the property is an accessor (slot.isAccessor()) before
calling getIfPropertyExists(). This ensures:
- Custom getters (Object.defineProperty) are properly invoked
- Data descriptors continue to use fast cached path
- No performance regression for normal error handling

Added RAII-style cleanup using WTF::makeScopeExit for recursion guard.

Fixes #23493

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-11 18:55:52 +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-07-20 23:02:10 -07:00