Claude Bot
743302c4fa
fix: prevent crash when throwing expect error with pending exception
...
When a JavaScript exception (like stack overflow from recursive
constructor calls) is caught but not fully cleared from JSC's internal
state, subsequent calls to Bun.jest().expect() matchers would crash
with an assertion failure in debug builds.
The crash occurred because:
1. DECLARE_THROW_SCOPE in C++ asserts there's no pending exception
2. VM.throwError in Zig asserts no exception before throwing
This fix adds early-return checks in:
- deepEqualsWrapperImpl: returns false if exception pending
- JSC__JSValue__isStrictEqual: returns false if exception pending
- JSC__JSValue__jestDeepMatch: returns false if exception pending
- VM.throwError: returns JSError if exception already pending
The existing exception will propagate correctly through the CatchScope
in the calling Zig code.
Fixes ENG-21977
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-11-24 08:07:01 +00:00
..
2025-11-10 14:38:26 -08:00
2025-11-17 15:04:42 -05:00
2025-11-10 14:38:26 -08:00
2025-11-18 10:49:21 -08:00
2025-11-20 20:56:02 -08:00
2025-11-24 08:07:01 +00:00
2025-11-18 14:02:21 -08:00
2025-11-23 00:34:27 -08:00
2025-11-20 20:56:02 -08:00
2025-11-19 21:20:55 -08:00
2025-11-10 14:38:26 -08:00
2025-11-18 14:02:21 -08:00
2025-11-20 20:56:02 -08:00
2025-11-10 14:38:26 -08:00
2025-11-23 01:41:17 -08:00
2025-11-19 21:17:51 -08:00
2025-11-21 14:06:19 -08:00
2025-11-23 00:32:38 -08:00
2025-11-19 21:20:55 -08:00
2025-11-10 14:38:26 -08:00
2025-11-20 23:37:31 -08:00
2025-11-10 14:38:26 -08:00
2025-10-03 17:10:28 -07:00
2025-11-17 11:23:13 -08:00
2025-10-03 17:10:28 -07:00
2025-11-10 14:38:26 -08:00
2025-11-10 14:38:26 -08:00
2025-11-18 10:49:21 -08:00
2025-11-18 14:02:21 -08:00
2025-11-10 14:38:26 -08:00
2025-11-20 20:56:02 -08:00
2025-11-10 14:38:26 -08:00
2025-11-10 14:38:26 -08:00
2025-11-10 14:38:26 -08:00
2025-11-15 16:36:15 -08:00
2025-11-10 14:38:26 -08:00
2025-11-10 14:38:26 -08:00
2025-11-10 14:38:26 -08:00
2025-11-10 14:38:26 -08:00
2025-11-10 14:38:26 -08:00
2025-11-10 14:38:26 -08:00
2025-10-04 02:17:55 -07:00
2025-10-31 19:50:55 -07:00
2025-11-19 22:52:01 -08:00
2025-11-05 15:28:28 -08:00
2025-11-10 14:38:26 -08:00
2025-10-23 23:08:08 -07:00
2025-11-10 14:38:26 -08:00
2025-11-10 14:38:26 -08:00
2025-11-18 09:46:44 -05:00
2025-11-18 10:49:21 -08:00
2025-11-17 15:04:42 -05:00
2025-11-10 14:38:26 -08:00
2025-11-10 19:58:02 -08:00
2025-10-24 23:42:20 -07:00
2025-11-21 14:06:19 -08:00
2025-09-26 15:19:45 -07:00
2025-11-18 10:49:21 -08:00
2025-10-29 19:29:04 -07:00
2025-11-03 22:20:07 -08:00
2025-11-10 14:38:26 -08:00
2025-11-20 20:56:02 -08:00
2025-11-20 20:56:02 -08:00
2025-09-26 22:21:00 -07:00
2025-11-10 14:38:26 -08:00
2025-11-10 14:38:26 -08:00
2025-11-10 14:38:26 -08:00
2025-11-10 14:38:26 -08:00
2025-11-10 19:58:02 -08:00
2025-11-20 23:37:31 -08:00
2025-11-10 14:38:26 -08:00
2025-11-18 10:49:21 -08:00
2025-10-23 23:08:08 -07:00
2025-11-10 14:38:26 -08:00
2025-11-10 14:38:26 -08:00
2025-10-04 00:31:47 -07:00
2025-11-10 14:38:26 -08:00
2025-10-02 14:11:29 -07:00
2025-11-10 14:38:26 -08:00
2025-11-10 14:38:26 -08:00
2025-09-09 20:41:10 -07:00
2025-11-10 14:38:26 -08:00
2025-10-14 20:51:34 -07:00
2025-11-10 14:38:26 -08:00
2025-11-10 14:38:26 -08:00
2025-11-10 14:38:26 -08:00
2025-11-15 16:36:15 -08:00
2025-11-10 14:38:26 -08:00
2025-11-10 14:38:26 -08:00
2025-10-23 23:08:08 -07:00
2025-11-10 14:38:26 -08:00
2025-11-10 14:38:26 -08:00
2025-11-10 14:38:26 -08:00
2025-11-10 14:38:26 -08:00
2025-11-10 14:38:26 -08:00
2025-10-18 18:14:01 -07:00
2025-11-10 14:38:26 -08:00
2025-09-14 04:14:48 -07:00
2025-11-17 15:04:42 -05:00
2025-11-10 14:38:26 -08:00
2025-11-10 14:38:26 -08:00
2025-11-10 14:38:26 -08:00
2025-09-30 00:10:15 -07:00
2025-11-10 14:38:26 -08:00
2025-10-23 23:08:08 -07:00
2025-11-10 14:38:26 -08:00
2025-11-13 19:29:16 -08:00
2025-09-26 15:15:58 -07:00
2025-11-10 14:38:26 -08:00
2025-11-15 16:36:15 -08:00
2025-09-26 22:21:00 -07:00
2025-11-10 14:38:26 -08:00
2025-09-22 19:28:26 -07:00
2025-11-10 14:38:26 -08:00
2025-11-18 10:49:21 -08:00
2025-11-10 14:38:26 -08:00
2025-11-23 01:42:32 -08:00
2025-11-10 14:38:26 -08:00
2025-11-18 10:49:21 -08:00
2025-11-10 14:38:26 -08:00
2025-11-17 15:04:42 -05:00
2025-10-03 17:10:28 -07:00
2025-11-10 14:38:26 -08:00
2025-11-10 14:38:26 -08:00
2025-11-18 10:49:21 -08:00
2025-11-18 10:49:21 -08:00
2025-11-10 14:38:26 -08:00
2025-11-10 14:38:26 -08:00