robobun
db7bcd79ff
Refactor: move ZigException functions to dedicated file ( #23560 )
...
## Summary
This PR moves error-related functions from `bindings.cpp` into a new
dedicated file `ZigException.cpp` for better code organization.
## Changes
Moved the following functions to `ZigException.cpp`:
- `populateStackFrameMetadata`
- `populateStackFramePosition`
- `populateStackFrame`
- `populateStackTrace`
- `fromErrorInstance`
- `exceptionFromString`
- `JSC__JSValue__toZigException`
- `ZigException__collectSourceLines`
- `JSC__Exception__getStackTrace`
Also moved helper functions and types:
- `V8StackTraceIterator` class
- `getNonObservable`
- `PopulateStackTraceFlags` enum
- `StringView_slice` helper
- `SYNTAX_ERROR_CODE` macro
## Test plan
- Built successfully with `bun bd`
- All exception handling functions are properly exported
- No functional changes, pure refactoring
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-authored-by: Claude Bot <claude-bot@bun.sh >
Co-authored-by: Claude <noreply@anthropic.com >
2025-10-12 16:29:56 -07:00
..
2025-10-03 17:10:28 -07:00
2025-07-22 17:51:38 -07:00
2025-10-06 06:40:15 -07:00
2025-10-10 03:48:04 -07:00
2025-08-11 20:19:34 -07:00
2025-10-07 08:17:31 -07:00
2025-07-22 17:51:38 -07:00
2025-10-12 16:29:56 -07:00
2025-10-11 19:51:58 -07:00
2025-10-11 19:53:05 -07:00
2025-10-08 01:14:00 -07:00
2025-10-10 03:48:04 -07:00
2025-09-14 04:14:48 -07:00
2025-10-02 14:11:29 -07:00
2025-10-11 20:54:30 -07:00
2025-07-21 13:26:47 -07:00
2025-07-22 17:51:38 -07:00
2025-10-11 19:21:14 -07:00
2025-10-11 20:54:30 -07:00
2025-10-10 22:49:45 -07:00
2025-10-11 19:21:14 -07:00
2025-10-05 17:23:59 -07:00
2025-10-09 19:04:41 -07:00
2025-10-11 20:54:30 -07:00
2025-07-21 13:26:47 -07:00
2025-10-10 03:48:04 -07:00
2025-10-03 17:10:28 -07:00
2025-10-03 17:10:28 -07:00
2025-10-03 17:10:28 -07:00
2025-10-08 18:00:38 -07:00
2025-10-03 16:13:06 -07:00
2025-10-11 19:53:05 -07:00
2025-10-06 05:39:22 -07:00
2025-09-09 20:41:10 -07:00
2025-10-08 18:00:38 -07:00
2025-10-12 05:40:02 -07:00
2025-10-06 19:47:24 -07:00
2025-10-11 20:54:30 -07:00
2025-10-10 03:48:04 -07:00
2025-10-04 04:57:29 -07:00
2025-07-21 13:26:47 -07:00
2025-09-26 13:47:24 -07:00
2025-10-11 20:54:30 -07:00
2025-06-04 19:41:26 -07:00
2025-10-12 11:29:48 -07:00
2025-10-04 02:17:55 -07:00
2025-09-26 13:47:24 -07:00
2025-09-27 00:45:29 -07:00
2025-05-14 18:42:42 -07:00
2025-07-29 19:35:46 -07:00
2025-07-22 17:51:38 -07:00
2025-07-22 17:51:38 -07:00
2025-09-30 05:26:32 -07:00
2025-04-17 14:17:08 -07:00
2025-07-22 17:51:38 -07:00
2025-09-03 18:57:39 -07:00
2025-07-22 17:51:38 -07:00
2025-07-20 23:04:17 -07:00
2025-10-03 17:10:28 -07:00
2025-10-10 03:48:04 -07:00
2025-10-06 19:48:16 -07:00
2025-06-12 14:20:28 -07:00
2025-09-18 19:37:24 -07:00
2025-07-21 13:26:47 -07:00
2025-10-06 20:03:46 -07:00
2025-10-03 17:13:22 -07:00
2025-09-26 15:19:45 -07:00
2025-10-08 18:00:38 -07:00
2025-07-31 00:56:50 -07:00
2025-08-11 20:19:34 -07:00
2025-10-12 14:00:11 -07:00
2025-07-22 17:51:38 -07:00
2025-07-21 13:26:47 -07:00
2025-09-26 22:21:00 -07:00
2025-09-19 02:06:02 -07:00
2025-07-21 13:26:47 -07:00
2025-09-25 19:03:22 -07:00
2025-07-28 00:13:17 -07:00
2025-08-22 23:04:58 -07:00
2025-05-08 23:22:16 -07:00
2025-05-08 23:22:16 -07:00
2025-08-14 18:03:26 -07:00
2025-10-07 12:07:29 -07:00
2025-05-08 23:22:16 -07:00
2025-10-10 03:48:04 -07:00
2025-10-11 19:53:05 -07:00
2025-08-23 06:55:30 -07:00
2025-10-04 00:31:47 -07:00
2025-09-24 00:47:52 -07:00
2025-10-02 14:11:29 -07:00
2025-09-19 02:38:38 -07:00
2025-07-22 17:51:38 -07:00
2025-07-22 17:51:38 -07:00
2025-09-09 20:41:10 -07:00
2025-10-06 05:39:22 -07:00
2025-07-09 00:19:57 -07:00
2025-07-22 17:51:38 -07:00
2025-07-22 17:51:38 -07:00
2025-08-23 06:55:30 -07:00
2025-07-22 17:51:38 -07:00
2025-10-10 03:48:04 -07:00
2025-09-26 13:47:24 -07:00
2025-09-30 05:26:32 -07:00
2025-09-11 23:29:53 -07:00
2025-03-26 23:57:10 -07:00
2025-09-09 20:41:10 -07:00
2025-07-22 17:51:38 -07:00
2025-10-04 01:56:42 -07:00
2025-02-18 10:38:37 -08:00
2025-07-21 13:26:47 -07:00
2025-07-22 17:51:38 -07:00
2025-08-26 12:50:25 -07:00
2025-07-22 17:51:38 -07:00
2025-09-30 16:14:55 -07:00
2025-10-03 17:10:28 -07:00
2025-07-22 17:51:38 -07:00
2025-09-14 04:14:48 -07:00
2025-10-06 06:40:15 -07:00
2025-10-03 17:13:22 -07:00
2025-07-22 17:51:38 -07:00
2025-09-12 23:59:24 -07:00
2025-09-30 00:10:15 -07:00
2025-09-25 18:03:27 -07:00
2025-07-21 13:26:47 -07:00
2025-09-09 20:41:10 -07:00
2025-07-21 13:26:47 -07:00
2025-09-26 15:15:58 -07:00
2025-07-22 17:51:38 -07:00
2025-08-26 12:50:25 -07:00
2025-09-26 22:21:00 -07:00
2025-09-26 22:21:00 -07:00
2025-09-03 15:40:44 -07:00
2025-09-22 19:28:26 -07:00
2025-07-21 13:26:47 -07:00
2025-10-11 08:23:25 -07:00
2025-07-21 13:26:47 -07:00
2025-10-10 03:48:04 -07:00
2025-07-13 04:27:43 -07:00
2025-07-13 04:27:43 -07:00
2025-07-13 04:27:43 -07:00
2025-10-04 04:57:29 -07:00
2025-10-08 18:00:38 -07:00
2025-07-21 13:26:47 -07:00
2025-09-03 15:40:44 -07:00
2025-07-25 12:38:06 -07:00
2025-07-21 13:26:47 -07:00
2025-02-01 01:11:02 -08:00
2025-09-19 02:06:02 -07:00
2025-10-03 17:10:28 -07:00
2025-07-21 13:26:47 -07:00
2025-08-11 20:19:34 -07:00
2025-07-21 13:26:47 -07:00
2025-10-03 02:38:55 -07:00
2025-10-12 11:29:48 -07:00
2025-07-22 17:51:38 -07:00
2025-08-11 20:19:34 -07:00
2025-07-20 23:04:17 -07:00
2025-08-23 06:55:30 -07:00
2025-07-21 13:26:47 -07:00
2025-07-22 17:51:38 -07:00
2025-07-21 13:26:47 -07:00
2025-09-03 18:57:39 -07:00