Files
bun.sh/src
Claude Bot ca194a1b51 Fix regression in plugin onLoad validation causing missing error throws
The cleanup-onloadresult branch introduced a regression where invalid onLoad
objects no longer throw errors when they should. Specifically:

1. Empty objects ({}) without contents property weren't throwing errors
2. Objects with invalid contents types (e.g., numbers) weren't being validated properly

The issue was in handleOnLoadResultNotPromise where the validation logic was
restructured but the error handling for missing or invalid contents was broken.

Fixed by:
- Properly checking for missing contents (undefined/null) before processing
- Adding comprehensive validation for invalid contents types
- Ensuring all code paths return appropriate error results

Fixes failing test: "invalid onLoad objects throw"

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-06 22:59:15 +00:00
..
2025-07-29 18:07:15 -07:00
2025-08-05 16:10:29 -07:00
2025-08-04 19:42:40 -07:00
2025-07-21 13:26:47 -07:00
2025-08-05 16:10:29 -07:00
2025-07-31 16:26:35 -07:00
2025-07-29 18:07:15 -07:00
2025-07-21 13:26:47 -07:00
2025-07-29 19:35:46 -07:00
2025-07-29 18:07:15 -07:00
2025-07-21 13:26:47 -07:00
Fix
2025-08-04 23:33:29 -07:00
2025-07-21 13:26:47 -07:00
2025-07-21 13:26:47 -07:00
2025-07-21 13:26:47 -07:00
2025-07-29 18:07:15 -07:00
2025-07-21 13:26:47 -07:00
2025-07-21 13:26:47 -07:00
2025-07-21 13:26:47 -07:00
2025-07-21 13:26:47 -07:00
2025-07-21 13:26:47 -07:00
2025-07-21 13:26:47 -07:00
2025-07-21 13:26:47 -07:00
2025-07-21 13:26:47 -07:00
2025-07-21 13:26:47 -07:00
2025-07-21 13:26:47 -07:00