Files
dev/codex-rs/browser
James PeterandClaude 7099f78209 feat: improve JavaScript execution harness in browser
- Replace basic harness with comprehensive error handling and normalization
- Add proper console capture for log, warn, error, and debug
- Implement smart value normalization for complex objects and DOM elements
- Add metadata tracking (URL changes, execution time)
- Include sourceURL for better debugging
- Capture window errors and unhandled promise rejections
- Use eval() within AsyncFunction for proper scope handling

This improved harness provides much better debugging capabilities and
handles edge cases like circular references, DOM elements, and BigInt values.

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

Co-Authored-By: Claude <[email protected]>
2025-08-13 21:08:18 +10:00
..