Files
compiler-explorer/static
Matt GodboltandClaude b6f57a48d4 Fix fromGoldenLayoutConfig to throw errors instead of returning false
This commit restores the original throwing behavior of fromGoldenLayoutConfig()
and removes the unnecessary design inconsistency introduced earlier.

Key changes:
- Restored fromGoldenLayoutConfig() to throw on invalid input (original behavior)
- Enhanced isValidItemConfig() with proper type validation (string componentName, object componentState)
- Removed redundant double validation from findConfig() - try/catch was already correct
- Updated history widget to use proper try/catch for error handling
- Fixed all test expectations to match throwing behavior
- Improved validation to reject invalid types instead of being overly lenient

The implementation now provides robust validation while maintaining the
expected API contract that the function throws on invalid input.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-19 15:49:41 -05:00
..
2025-06-18 09:04:23 -05:00
2025-06-18 09:04:23 -05:00
2025-06-19 08:46:57 -05:00
2025-06-18 09:04:23 -05:00
2024-10-25 12:19:04 +03:00
2025-04-24 12:10:37 -05:00
2025-04-24 12:10:37 -05:00